X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_blinecalcwidth.cpp;h=d7db04e259a1fa92fd2bb1196124daba4774b676;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=4dc989c2652bf549580c0713799ef525491d74eb;hpb=8eed22b9657ac7cb1881eab5c7b5c3d1f0c69468;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp b/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp index 4dc989c..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)); @@ -230,8 +232,11 @@ ValueNode_BLineCalcWidth::check_type(ValueBase::Type type) } LinkableValueNode::Vocab -ValueNode_BLineCalcWidth::get_param_vocab()const +ValueNode_BLineCalcWidth::get_children_vocab_vfunc()const { + if(children_vocab.size()) + return children_vocab; + LinkableValueNode::Vocab ret; ret.push_back(ParamDesc(ValueBase(),"bline")