projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git]
/
synfig-core
/
src
/
synfig
/
valuenode_reference.cpp
diff --git
a/synfig-core/src/synfig/valuenode_reference.cpp
b/synfig-core/src/synfig/valuenode_reference.cpp
index
fa89437
..
a6ac870
100644
(file)
--- a/
synfig-core/src/synfig/valuenode_reference.cpp
+++ b/
synfig-core/src/synfig/valuenode_reference.cpp
@@
-58,6
+58,8
@@
ValueNode_Reference::ValueNode_Reference(const ValueBase::Type &x):
ValueNode_Reference::ValueNode_Reference(const ValueNode::Handle &x):
LinkableValueNode(x->get_type())
{
ValueNode_Reference::ValueNode_Reference(const ValueNode::Handle &x):
LinkableValueNode(x->get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
set_link("link",x);
}
set_link("link",x);
}
@@
-170,6
+172,9
@@
ValueNode_Reference::check_type(ValueBase::Type type)
LinkableValueNode::Vocab
ValueNode_Reference::get_children_vocab_vfunc()const
{
LinkableValueNode::Vocab
ValueNode_Reference::get_children_vocab_vfunc()const
{
+ if(children_vocab.size())
+ return children_vocab;
+
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"link")
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"link")