X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_geometry%2Fcircle.cpp;h=3e33b3a0cb159b86b62233db80975a2eafecf3a0;hb=c03c4194371a7030144d0897ecbb8e6282379cd5;hp=d8f51a7853e8b4b020fe66bd014499c1f55624a8;hpb=34661891b55d1b54f96955755b4cbd099039acc9;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..3e33b3a 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,35 @@ Circle::get_param(const String ¶m)const return Layer_Composite::get_param(param); } + +bool +Circle::set_param_static(const String ¶m, const bool x) +{ + + SET_STATIC(color, x) + SET_STATIC(radius, x) + SET_STATIC(origin, x) + SET_STATIC(feather, x) + SET_STATIC(falloff, x) + + return Layer_Composite::set_param_static(param, x); +} + + +bool +Circle::get_param_static(const String ¶m) const +{ + + GET_STATIC(color) + GET_STATIC(radius) + GET_STATIC(origin) + GET_STATIC(feather) + GET_STATIC(falloff) + + return Layer_Composite::get_param_static(param); +} + + Layer::Vocab Circle::get_param_vocab()const {