X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_vectorx.cpp;h=0716e7b36ed555000c16731d1d162c994803c4a5;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=48f91804834d09b0ff51e77782fc89100215b46f;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_vectorx.cpp b/synfig-core/src/synfig/valuenode_vectorx.cpp index 48f9180..0716e7b 100644 --- a/synfig-core/src/synfig/valuenode_vectorx.cpp +++ b/synfig-core/src/synfig/valuenode_vectorx.cpp @@ -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; +}