Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_subtract.cpp
index 3ba475e..7436551 100644 (file)
@@ -101,8 +101,6 @@ synfig::ValueNode_Subtract::ValueNode_Subtract(const ValueBase &value):
        assert(ref_a->get_type()==id);
        assert(ref_b->get_type()==id);
        assert(get_type()==id);
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -247,3 +245,26 @@ ValueNode_Subtract::check_type(ValueBase::Type type)
                || type==ValueBase::TYPE_TIME
                || type==ValueBase::TYPE_VECTOR;
 }
+
+LinkableValueNode::Vocab
+ValueNode_Subtract::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"lhs")
+               .set_local_name(_("LHS"))
+               .set_description(_("Left Hand Side of the subtraction"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"rhs")
+               .set_local_name(_("RHS"))
+               .set_description(_("Right Hand Side of the subtraction"))
+       );
+
+               ret.push_back(ParamDesc(ValueBase(),"scalar")
+               .set_local_name(_("Scalar"))
+               .set_description(_("Value that multiplies the subtraction"))
+       );
+
+       return ret;
+}