X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_atan2.cpp;h=7ff091c6f227705c19b6046d8093e60b5118ee87;hb=HEAD;hp=89bedc251f37f4a1936fbbdca74819eacf4d2b6f;hpb=5db17dd500c44a59e62bc52cf1c22392edc972a8;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_atan2.cpp b/synfig-core/src/synfig/valuenode_atan2.cpp index 89bedc2..7ff091c 100644 --- a/synfig-core/src/synfig/valuenode_atan2.cpp +++ b/synfig-core/src/synfig/valuenode_atan2.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_Atan2::ValueNode_Atan2(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_ANGLE: @@ -136,43 +138,20 @@ ValueNode_Atan2::get_link_vfunc(int i)const return 0; } -int -ValueNode_Atan2::link_count()const +LinkableValueNode::Vocab +ValueNode_Atan2::get_children_vocab_vfunc()const { - return 2; -} + LinkableValueNode::Vocab ret; -String -ValueNode_Atan2::link_name(int i)const -{ - assert(i>=0 && i=0 && i