Use map of static values indexed by parameter name instead of the macros and the...
[synfig.git] / synfig-core / src / modules / lyr_std / curvewarp.cpp
index 82c213d..865d35f 100644 (file)
@@ -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
@@ -377,6 +379,18 @@ CurveWarp::get_param(const String & param)const
        return ValueBase();
 }
 
+bool
+CurveWarp::set_param_static(const String &param, const bool x)
+{
+       return Layer::set_param_static(param, x);
+}
+
+bool
+CurveWarp::get_param_static(const String &param)const
+{
+       return Layer::get_param_static(param);
+}
+
 Layer::Vocab
 CurveWarp::get_param_vocab()const
 {