X-Git-Url: https://git.pterodactylus.net/?p=synfig.git;a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_timestring.cpp;h=5391add6423378cc4a08a6a69e28508298264bd5;hp=bdc140d8aa56ff81d6f56a855f68339fa9230c9f;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hpb=d4cb326591ea23f82d341eb368b3d183b46f56c7 diff --git a/synfig-core/src/synfig/valuenode_timestring.cpp b/synfig-core/src/synfig/valuenode_timestring.cpp index bdc140d..5391add 100644 --- a/synfig-core/src/synfig/valuenode_timestring.cpp +++ b/synfig-core/src/synfig/valuenode_timestring.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_TimeString::ValueNode_TimeString(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_STRING: @@ -189,6 +191,9 @@ ValueNode_TimeString::check_type(ValueBase::Type type) LinkableValueNode::Vocab ValueNode_TimeString::get_children_vocab_vfunc()const { + if(children_vocab.size()) + return children_vocab; + LinkableValueNode::Vocab ret; ret.push_back(ParamDesc(ValueBase(),"time")