X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_blinecalcvertex.cpp;h=afdf62eb62d1adc2110560193469dd714887ad18;hb=2b2950e88fb6c4bfa36ec91eb86de33c6c27fafe;hp=a6fc589870a45a8a33dc7c14becba6d3bf5daaa1;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_blinecalcvertex.cpp b/synfig-core/src/synfig/valuenode_blinecalcvertex.cpp index a6fc589..afdf62e 100644 --- a/synfig-core/src/synfig/valuenode_blinecalcvertex.cpp +++ b/synfig-core/src/synfig/valuenode_blinecalcvertex.cpp @@ -58,6 +58,8 @@ using namespace synfig; ValueNode_BLineCalcVertex::ValueNode_BLineCalcVertex(const ValueBase::Type &x): LinkableValueNode(x) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); if(x!=ValueBase::TYPE_VECTOR) throw Exception::BadType(ValueBase::type_local_name(x)); @@ -172,51 +174,34 @@ ValueNode_BLineCalcVertex::get_link_vfunc(int i)const return 0; } -int -ValueNode_BLineCalcVertex::link_count()const +bool +ValueNode_BLineCalcVertex::check_type(ValueBase::Type type) { - return 3; + return type==ValueBase::TYPE_VECTOR; } -String -ValueNode_BLineCalcVertex::link_name(int i)const +LinkableValueNode::Vocab +ValueNode_BLineCalcVertex::get_children_vocab_vfunc()const { - assert(i>=0 && i=0 && i