X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Flayer_composite.h;h=7c9481168a47b926e12e9f6b35c35bcd0f928dcb;hb=e6b894ac0b503008a3e42049aed30d116db28630;hp=458bae759fbe001a5715eb41e7624b34deee33cc;hpb=ac1cb398b817d4c0cb0c36fe4d12ca24859ddb93;p=synfig.git diff --git a/synfig-core/src/synfig/layer_composite.h b/synfig-core/src/synfig/layer_composite.h index 458bae7..7c94811 100644 --- a/synfig-core/src/synfig/layer_composite.h +++ b/synfig-core/src/synfig/layer_composite.h @@ -52,6 +52,8 @@ private: float amount_; //! The blend method for the composition Color::BlendMethod blend_method_; + bool amount_static; + bool blend_method_static; protected: //! Default constructor. Not used directly. @@ -62,7 +64,9 @@ protected: amount_ (amount), blend_method_ (blend_method), converted_blend_ (false), - transparent_color_ (false) + transparent_color_ (false), + amount_static (false), + blend_method_static (true) { } //! Converted blend is used to check if an old version of canvas //! is used in the composition. Old Straight was used as new Composite @@ -93,6 +97,8 @@ public: virtual ValueBase get_param(const String ¶m)const; //!Returns the rectangle that includes the context of the layer and //! the intersection of the layer in case it is active and not onto + virtual bool set_param_static(const String ¶m, const bool x); + virtual bool get_param_static(const String ¶m) const; virtual Rect get_full_bounding_rect(Context context)const; //! Renders the layer composited on the context and puts it on the target surface. virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;