X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_timestring.cpp;h=5391add6423378cc4a08a6a69e28508298264bd5;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=e01859db23e194101815c8f9e5446f851f469057;hpb=c11c4966980ed301f40b3dcc24e4fbec525f93e3;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_timestring.cpp b/synfig-core/src/synfig/valuenode_timestring.cpp index e01859d..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: @@ -185,3 +187,19 @@ ValueNode_TimeString::check_type(ValueBase::Type type) return type==ValueBase::TYPE_STRING; } + +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") + .set_local_name(_("Time")) + .set_description(_("The time that is converted to string")) + ); + + return ret; +}