Use map of static values indexed by parameter name instead of the macros and the...
[synfig.git] / synfig-core / src / synfig / layer_bitmap.cpp
index cda5d09..742b023 100644 (file)
@@ -22,8 +22,6 @@
 
 /* === H E A D E R S ======================================================= */
 
-#define SYNFIG_NO_ANGLE
-
 #ifdef USING_PCH
 #      include "pch.h"
 #else
@@ -71,6 +69,9 @@ synfig::Layer_Bitmap::Layer_Bitmap():
        trimmed                 (false),
        gamma_adjust    (1.0)
 {
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
+       set_param_static("c", true);
 }
 
 bool
@@ -523,3 +524,17 @@ Layer_Bitmap::get_bounding_rect()const
 {
        return Rect(tl,br);
 }
+
+
+bool
+Layer_Bitmap::set_param_static(const String &param, const bool x)
+{
+       return Layer_Composite::set_param_static(param, x);
+}
+
+
+bool
+Layer_Bitmap::get_param_static(const String &param) const
+{
+       return Layer_Composite::get_param_static(param);
+}