Use map of static values indexed by parameter name instead of the macros and the...
[synfig.git] / synfig-core / src / synfig / layer_motionblur.cpp
index eb489d9..03bd076 100644 (file)
@@ -64,10 +64,12 @@ Layer_MotionBlur::Layer_MotionBlur():
        Layer_Composite         (1.0,Color::BLEND_STRAIGHT),
        aperture                        (0),
        subsamples_factor       (1.0),
-       subsampling_type        (SUBSAMPLING_CONSTANT),
+       subsampling_type        (SUBSAMPLING_HYPERBOLIC),
        subsample_start         (0.0),
        subsample_end           (1.0)
 {
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
 }
 
 bool
@@ -264,3 +266,17 @@ Layer_MotionBlur::accelerated_render(Context context,Surface *surface,int qualit
 
        return true;
 }
+
+
+bool
+Layer_MotionBlur::set_param_static(const String &param, const bool x)
+{
+       return Layer_Composite::set_param_static(param, x);
+}
+
+
+bool
+Layer_MotionBlur::get_param_static(const String &param) const
+{
+       return Layer_Composite::get_param_static(param);
+}