X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_filter%2Fblur.cpp;h=5ef35672288d0c446cdb99dacc568989782b158b;hb=395ddd4089edf7d028b27815ca41953227884930;hp=f3af3eaee4da80d5e70c58a1e44d5025c1e1fd91;hpb=95e671c091f35812d7c83559c595ebfd3ce45cb4;p=synfig.git diff --git a/synfig-core/src/modules/mod_filter/blur.cpp b/synfig-core/src/modules/mod_filter/blur.cpp index f3af3ea..5ef3567 100644 --- a/synfig-core/src/modules/mod_filter/blur.cpp +++ b/synfig-core/src/modules/mod_filter/blur.cpp @@ -80,7 +80,9 @@ inline void clamp(synfig::Vector &v) Blur_Layer::Blur_Layer(): Layer_Composite(1.0,Color::BLEND_STRAIGHT), size(0.1,0.1), - type(Blur::FASTGAUSSIAN) + type(Blur::FASTGAUSSIAN), + size_static(false), + type_static(true) { } @@ -105,6 +107,27 @@ Blur_Layer::get_param(const String ¶m)const return Layer_Composite::get_param(param); } +bool +Blur_Layer::set_param_static(const String ¶m, const bool x) +{ + + SET_STATIC(size, x) + SET_STATIC(type, x) + + return Layer_Composite::set_param_static(param, x); +} + +bool +Blur_Layer::get_param_static(const String ¶m)const +{ + + GET_STATIC(size) + GET_STATIC(type) + + return Layer_Composite::get_param_static(param); +} + + Color Blur_Layer::get_color(Context context, const Point &pos)const {