Rename get_param_vocab to get_children_vocab and use a wrapper for the pure virtual...
[synfig.git] / synfig-core / src / synfig / valuenode_vectorx.cpp
index 48f9180..0716e7b 100644 (file)
@@ -61,8 +61,6 @@ ValueNode_VectorX::ValueNode_VectorX(const ValueBase &value):
        default:
                throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
        }
-
-       DCAST_HACK_ENABLE();
 }
 
 LinkableValueNode*
@@ -166,3 +164,16 @@ ValueNode_VectorX::check_type(ValueBase::Type type)
 {
        return type==ValueBase::TYPE_REAL;
 }
+
+LinkableValueNode::Vocab
+ValueNode_VectorX::get_children_vocab_vfunc()const
+{
+       LinkableValueNode::Vocab ret;
+
+       ret.push_back(ParamDesc(ValueBase(),"vector")
+               .set_local_name(_("Vector"))
+               .set_description(_("The vector where the X coordinate is extracted from"))
+       );
+
+       return ret;
+}