From: Carlos Lopez Date: Thu, 26 Aug 2010 16:43:31 +0000 (+0200) Subject: Allow static option for the Radial Blur Layer X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ea44f770a4ee4a6f6c4681735dd44b3bd3698bfe;p=synfig.git Allow static option for the Radial Blur Layer --- diff --git a/synfig-core/src/modules/mod_filter/radialblur.cpp b/synfig-core/src/modules/mod_filter/radialblur.cpp index 2d018a6..ad54927 100644 --- a/synfig-core/src/modules/mod_filter/radialblur.cpp +++ b/synfig-core/src/modules/mod_filter/radialblur.cpp @@ -98,6 +98,28 @@ RadialBlur::get_param(const String ¶m)const return Layer_Composite::get_param(param); } +bool +RadialBlur::set_param_static(const String ¶m, const bool x) +{ + + SET_STATIC(origin, x) + SET_STATIC(size, x) + SET_STATIC(fade_out, x) + + return Layer_Composite::set_param_static(param, x); +} + +bool +RadialBlur::get_param_static(const String ¶m)const +{ + + GET_STATIC(origin) + GET_STATIC(size) + GET_STATIC(fade_out) + + return Layer_Composite::get_param_static(param); +} + Layer::Vocab RadialBlur::get_param_vocab()const { diff --git a/synfig-core/src/modules/mod_filter/radialblur.h b/synfig-core/src/modules/mod_filter/radialblur.h index 197eb2f..dd4a402 100644 --- a/synfig-core/src/modules/mod_filter/radialblur.h +++ b/synfig-core/src/modules/mod_filter/radialblur.h @@ -53,12 +53,18 @@ private: Real size; bool fade_out; + bool origin_static; + bool size_static; + bool fade_out_static; + public: RadialBlur(); ~RadialBlur(); virtual bool set_param(const synfig::String & param, const synfig::ValueBase &value); virtual ValueBase get_param(const synfig::String & param)const; + virtual bool set_param_static(const String ¶m, const bool x); + virtual bool get_param_static(const String ¶m) const; virtual Color get_color(Context context, const Point &pos)const; virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; virtual Vocab get_param_vocab()const;