Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git] / synfig-core / src / synfig / valuenode_atan2.cpp
index 844fbad..ff1fb18 100644 (file)
@@ -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:
@@ -178,7 +180,7 @@ ValueNode_Atan2::get_link_index_from_name(const String &name)const
 }
 
 LinkableValueNode::Vocab
-ValueNode_Atan2::get_param_vocab()const
+ValueNode_Atan2::get_children_vocab_vfunc()const
 {
        LinkableValueNode::Vocab ret;