Add 'Switch' valuenode.
[synfig.git] / synfig-core / trunk / src / synfig / layer.h
index 06af0ba..4f2fb10 100644 (file)
 #define SYNFIG_LAYER_INIT(class) synfig::Layer* class::create() { return new class(); }
 
 //! \writeme
-#define IMPORT_PLUS(x,y) if(param==#x && value.same_as(x)) { value.put(&x);{y;}return true;}
+#define IMPORT_PLUS(x,y) if(param==#x && value.same_type_as(x)) { value.put(&x);{y;}return true;}
 
 //! \writeme
-#define IMPORT_AS(x,y) if(param==y && value.same_as(x)) { value.put(&x); return true;}
+#define IMPORT_AS(x,y) if(param==y && value.same_type_as(x)) { value.put(&x); return true;}
 
 //! \writeme
 #define IMPORT(x) IMPORT_AS(x,#x)
@@ -168,7 +168,7 @@ public:
 
 private:
 
-       /*! \c true if the layer is visible, \c is it is to be skipped
+       /*! \c true if the layer is visible, \c false if it is to be skipped
        **      \see set_active(), enable(), disable, active()
        */
        bool active_;