Use map of static values indexed by parameter name instead of the macros and the...
[synfig.git] / synfig-core / src / modules / mod_filter / blur.cpp
index e5104b0..7946c36 100644 (file)
@@ -78,10 +78,13 @@ inline void clamp(synfig::Vector &v)
 }
 
 Blur_Layer::Blur_Layer():
-       Layer_Composite (1.0,Color::BLEND_STRAIGHT),
+       Layer_Composite(1.0,Color::BLEND_STRAIGHT),
        size(0.1,0.1),
        type(Blur::FASTGAUSSIAN)
 {
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
+       set_param_static("blend_method", true);
 }
 
 bool
@@ -105,6 +108,19 @@ Blur_Layer::get_param(const String &param)const
        return Layer_Composite::get_param(param);
 }
 
+bool
+Blur_Layer::set_param_static(const String &param, const bool x)
+{
+       return Layer_Composite::set_param_static(param, x);
+}
+
+bool
+Blur_Layer::get_param_static(const String &param)const
+{
+       return Layer_Composite::get_param_static(param);
+}
+
+
 Color
 Blur_Layer::get_color(Context context, const Point &pos)const
 {