Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git] / synfig-core / src / synfig / valuenode_timedswap.cpp
index 7e1b56f..d232b99 100644 (file)
@@ -56,6 +56,8 @@ using namespace synfig;
 ValueNode_TimedSwap::ValueNode_TimedSwap(const ValueBase &value):
        LinkableValueNode(value.get_type())
 {
+       Vocab ret(get_children_vocab());
+       set_children_vocab(ret);
        switch(get_type())
        {
        case ValueBase::TYPE_ANGLE:
@@ -280,6 +282,9 @@ ValueNode_TimedSwap::check_type(ValueBase::Type type)
 LinkableValueNode::Vocab
 ValueNode_TimedSwap::get_children_vocab_vfunc()const
 {
+       if(children_vocab.size())
+               return children_vocab;
+
        LinkableValueNode::Vocab ret;
 
        ret.push_back(ParamDesc(ValueBase(),"before")