X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvalue.h;h=62fd04f8d447f120c87116812456a5f052898ff2;hb=ac1cb398b817d4c0cb0c36fe4d12ca24859ddb93;hp=1ff51c5e25925250cd2969536884cee14bd9668d;hpb=1c1eea49df6278dc5e9215d39267f9ceb7d25f0e;p=synfig.git diff --git a/synfig-core/src/synfig/value.h b/synfig-core/src/synfig/value.h index 1ff51c5..62fd04f 100644 --- a/synfig-core/src/synfig/value.h +++ b/synfig-core/src/synfig/value.h @@ -123,6 +123,8 @@ protected: etl::reference_counter ref_count; //! For Values with loop option like TYPE_LIST bool loop_; + //! For Values of Constant Value Nodes or Layer parameters + bool static_; /* -- ** -- C O N S T R U C T O R S ----------------------------------- @@ -135,8 +137,8 @@ public: //! Template constructor for any type template - ValueBase(const T &x, bool loop_=false): - type(TYPE_NIL),data(0),ref_count(0),loop_(loop_) + ValueBase(const T &x, bool loop_=false, bool static_=false): + type(TYPE_NIL),data(0),ref_count(0),loop_(loop_), static_(static_) { set(x); } //! Copy constructor. The data is not copied, just the type. @@ -184,6 +186,12 @@ public: //! Sets the loop option. void set_loop(bool x) { loop_=x; } + //! Gets the static option. + bool get_static()const { return static_; } + + //! Sets the static option. + void set_static(bool x) { static_=x; } + //! True if the Value is not valid or is type LIST and is empty bool empty()const;