X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_blinecalcwidth.cpp;fp=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_blinecalcwidth.cpp;h=d7db04e259a1fa92fd2bb1196124daba4774b676;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=d78f99aef105f9123c82dd098481f9a99592e85f;hpb=d4cb326591ea23f82d341eb368b3d183b46f56c7;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp b/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp index d78f99a..d7db04e 100644 --- a/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp +++ b/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp @@ -58,6 +58,8 @@ using namespace synfig; ValueNode_BLineCalcWidth::ValueNode_BLineCalcWidth(const ValueBase::Type &x): LinkableValueNode(x) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); if(x!=ValueBase::TYPE_REAL) throw Exception::BadType(ValueBase::type_local_name(x)); @@ -232,6 +234,9 @@ ValueNode_BLineCalcWidth::check_type(ValueBase::Type type) LinkableValueNode::Vocab ValueNode_BLineCalcWidth::get_children_vocab_vfunc()const { + if(children_vocab.size()) + return children_vocab; + LinkableValueNode::Vocab ret; ret.push_back(ParamDesc(ValueBase(),"bline")