X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_vectory.cpp;h=4e49cdc53f0c9e4bf32b661851d9cd91304f76a7;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=4063eaed23ecf204587092fa63549b3308a2381d;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_vectory.cpp b/synfig-core/src/synfig/valuenode_vectory.cpp index 4063eae..4e49cdc 100644 --- a/synfig-core/src/synfig/valuenode_vectory.cpp +++ b/synfig-core/src/synfig/valuenode_vectory.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_VectorY::ValueNode_VectorY(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_REAL: @@ -61,8 +63,6 @@ ValueNode_VectorY::ValueNode_VectorY(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -166,3 +166,19 @@ ValueNode_VectorY::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_REAL; } + +LinkableValueNode::Vocab +ValueNode_VectorY::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"vector") + .set_local_name(_("Vector")) + .set_description(_("The vector where the Y coordinate is extracted from")) + ); + + return ret; +}