X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Flyr_std%2Fcurvewarp.cpp;h=865d35ffaef3342d15a20cd73473cdbd23748c0f;hb=771bab79d7ca89c8389d9ec4aef5a0f8387f8f7c;hp=4e6306a491264f5eb067af3bee755bb045e5310f;hpb=18bd95649e87854ac1fbe471231158c8979983cd;p=synfig.git diff --git a/synfig-core/src/modules/lyr_std/curvewarp.cpp b/synfig-core/src/modules/lyr_std/curvewarp.cpp index 4e6306a..865d35f 100644 --- a/synfig-core/src/modules/lyr_std/curvewarp.cpp +++ b/synfig-core/src/modules/lyr_std/curvewarp.cpp @@ -169,6 +169,8 @@ CurveWarp::CurveWarp(): bline[1].set_width(1.0f); sync(); + Layer::Vocab voc(get_param_vocab()); + Layer::fill_static(voc); } inline Point @@ -380,27 +382,12 @@ CurveWarp::get_param(const String & param)const bool CurveWarp::set_param_static(const String ¶m, const bool x) { - - SET_STATIC(origin, x) - SET_STATIC(perp_width, x) - SET_STATIC(start_point, x) - SET_STATIC(end_point, x) - SET_STATIC(fast, x) - return Layer::set_param_static(param, x); } bool CurveWarp::get_param_static(const String ¶m)const { - - GET_STATIC(origin) - GET_STATIC(perp_width) - GET_STATIC(start_point) - GET_STATIC(end_point) - GET_STATIC(fast) - - return Layer::get_param_static(param); }