Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git] / synfig-core / src / synfig / valuenode_pow.cpp
index b6fcae6..94369bf 100644 (file)
@@ -54,6 +54,8 @@ using namespace synfig;
 ValueNode_Pow::ValueNode_Pow(const ValueBase &x):
        LinkableValueNode(x.get_type())
 {
+       Vocab ret(get_children_vocab());
+       set_children_vocab(ret);
        Real value(x.get(Real()));
        Real infinity(999999.0);
        Real epsilon(0.000001);
@@ -207,8 +209,11 @@ ValueNode_Pow::check_type(ValueBase::Type type)
 }
 
 LinkableValueNode::Vocab
-ValueNode_Pow::get_param_vocab()const
+ValueNode_Pow::get_children_vocab_vfunc()const
 {
+       if(children_vocab.size())
+               return children_vocab;
+
        LinkableValueNode::Vocab ret;
 
        ret.push_back(ParamDesc(ValueBase(),"base")