X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_blinecalcwidth.cpp;h=9bd59475c2205e184aec1f3d1f558e1ff4c3b36c;hb=HEAD;hp=4d8ee0e3b5c0dad2d69c23c2755fbb2d6c4ffe81;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp b/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp index 4d8ee0e..9bd5947 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)); @@ -177,54 +179,40 @@ ValueNode_BLineCalcWidth::get_link_vfunc(int i)const return 0; } -int -ValueNode_BLineCalcWidth::link_count()const +bool +ValueNode_BLineCalcWidth::check_type(ValueBase::Type type) { - return 4; + return type==ValueBase::TYPE_REAL; } -String -ValueNode_BLineCalcWidth::link_name(int i)const +LinkableValueNode::Vocab +ValueNode_BLineCalcWidth::get_children_vocab_vfunc()const { - assert(i>=0 && i=0 && i