X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_atan2.cpp;h=7ff091c6f227705c19b6046d8093e60b5118ee87;hb=HEAD;hp=c4dd5e7cda99a45f969b8f51614f98aab3ddf38b;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_atan2.cpp b/synfig-core/src/synfig/valuenode_atan2.cpp index c4dd5e7..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: @@ -62,8 +64,6 @@ ValueNode_Atan2::ValueNode_Atan2(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -138,43 +138,20 @@ ValueNode_Atan2::get_link_vfunc(int i)const return 0; } -int -ValueNode_Atan2::link_count()const -{ - return 2; -} - -String -ValueNode_Atan2::link_name(int i)const -{ - assert(i>=0 && i=0 && i