X-Git-Url: https://git.pterodactylus.net/?p=synfig.git;a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_vectorlength.cpp;h=dc69acddf802fefd590b7625789a447f9b685445;hp=79fc79f5d9e8388c2eb1138337eaca2655a6c5f9;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hpb=d4cb326591ea23f82d341eb368b3d183b46f56c7 diff --git a/synfig-core/src/synfig/valuenode_vectorlength.cpp b/synfig-core/src/synfig/valuenode_vectorlength.cpp index 79fc79f..dc69acd 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: @@ -168,6 +170,9 @@ ValueNode_VectorLength::check_type(ValueBase::Type type) LinkableValueNode::Vocab ValueNode_VectorLength::get_children_vocab_vfunc()const { + if(children_vocab.size()) + return children_vocab; + LinkableValueNode::Vocab ret; ret.push_back(ParamDesc(ValueBase(),"vector")