X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_vectorlength.cpp;h=6963e3995e7e0720ba70f4ea5bdd6efee9179427;hb=HEAD;hp=5d85f986d6fb09fcf1ae30132ba2a2e6927c65ae;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_vectorlength.cpp b/synfig-core/src/synfig/valuenode_vectorlength.cpp index 5d85f98..6963e39 100644 --- a/synfig-core/src/synfig/valuenode_vectorlength.cpp +++ b/synfig-core/src/synfig/valuenode_vectorlength.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_VectorLength::ValueNode_VectorLength(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_VectorLength::ValueNode_VectorLength(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -114,41 +114,6 @@ ValueNode_VectorLength::get_link_vfunc(int i)const return 0; } -int -ValueNode_VectorLength::link_count()const -{ - return 1; -} - -String -ValueNode_VectorLength::link_local_name(int i)const -{ - assert(i>=0 && i=0 && i