X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_geometry%2Fcircle.cpp;h=dcf8cef6dbb0a88c686e30cc672a59906d84db2f;hb=e6b894ac0b503008a3e42049aed30d116db28630;hp=d8f51a7853e8b4b020fe66bd014499c1f55624a8;hpb=ac1cb398b817d4c0cb0c36fe4d12ca24859ddb93;p=synfig.git diff --git a/synfig-core/src/modules/mod_geometry/circle.cpp b/synfig-core/src/modules/mod_geometry/circle.cpp index d8f51a7..dcf8cef 100644 --- a/synfig-core/src/modules/mod_geometry/circle.cpp +++ b/synfig-core/src/modules/mod_geometry/circle.cpp @@ -66,7 +66,13 @@ Circle::Circle(): radius (1), feather (0), invert (false), - falloff (FALLOFF_INTERPOLATION_LINEAR) + falloff (FALLOFF_INTERPOLATION_LINEAR), + color_static (false), + origin_static (false), + radius_static (false), + feather_static (false), + invert_static (true), + falloff_static (true) { constructcache(); } @@ -116,6 +122,61 @@ Circle::get_param(const String ¶m)const return Layer_Composite::get_param(param); } + +bool +Circle::set_param_static(const String ¶m, const bool x) +{ + + if(param=="color" && color_static!=x) + { + color_static=x; + return true; + } + if(param=="radius" && radius_static!=x) + { + radius_static=x; + return true; + } + + if(param=="origin" && origin_static!=x) + { + origin_static=x; + return true; + } + if(param=="feather" && feather_static!=x) + { + feather_static=x; + return true; + } + if(param=="falloff" && falloff_static!=x) + { + falloff_static=x; + return true; + } + + return Layer_Composite::set_param_static(param, x); +} + + +bool +Circle::get_param_static(const String ¶m) const +{ + + if(param=="color") + return color_static; + if(param=="radius") + return radius_static; + if(param=="origin") + return origin_static; + if(param=="feather") + return feather_static; + if(param=="falloff") + return falloff_static; + + return Layer_Composite::get_param_static(param); +} + + Layer::Vocab Circle::get_param_vocab()const {