Use map of static values indexed by parameter name instead of the macros and the...
[synfig.git] / synfig-core / src / modules / mod_geometry / circle.cpp
index f5ad99b..6721ad4 100644 (file)
@@ -60,7 +60,7 @@ SYNFIG_LAYER_SET_CVS_ID(Circle,"$Id$");
 /* -- F U N C T I O N S ----------------------------------------------------- */
 
 Circle::Circle():
-       Layer_Composite (1.0,Color::BLEND_STRAIGHT),
+       Layer_Composite (1.0,Color::BLEND_COMPOSITE),
        color                   (Color::black()),
        origin                  (0,0),
        radius                  (1),
@@ -69,6 +69,8 @@ Circle::Circle():
        falloff                 (FALLOFF_INTERPOLATION_LINEAR)
 {
        constructcache();
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
 }
 
 bool
@@ -116,6 +118,21 @@ Circle::get_param(const String &param)const
        return Layer_Composite::get_param(param);
 }
 
+
+bool
+Circle::set_param_static(const String &param, const bool x)
+{
+       return Layer_Composite::set_param_static(param, x);
+}
+
+
+bool
+Circle::get_param_static(const String &param) const
+{
+       return Layer_Composite::get_param_static(param);
+}
+
+
 Layer::Vocab
 Circle::get_param_vocab()const
 {