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_radialcomposite.cpp
diff --git
a/synfig-core/src/synfig/valuenode_radialcomposite.cpp
b/synfig-core/src/synfig/valuenode_radialcomposite.cpp
index
5d320b6
..
85b882a
100644
(file)
--- a/
synfig-core/src/synfig/valuenode_radialcomposite.cpp
+++ b/
synfig-core/src/synfig/valuenode_radialcomposite.cpp
@@
-55,6
+55,8
@@
using namespace synfig;
synfig::ValueNode_RadialComposite::ValueNode_RadialComposite(const ValueBase &value):
LinkableValueNode(value.get_type())
{
synfig::ValueNode_RadialComposite::ValueNode_RadialComposite(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(get_type())
{
case ValueBase::TYPE_VECTOR:
switch(get_type())
{
case ValueBase::TYPE_VECTOR:
@@
-317,6
+319,9
@@
ValueNode_RadialComposite::check_type(ValueBase::Type type)
LinkableValueNode::Vocab
ValueNode_RadialComposite::get_children_vocab_vfunc()const
{
LinkableValueNode::Vocab
ValueNode_RadialComposite::get_children_vocab_vfunc()const
{
+ if(children_vocab.size())
+ return children_vocab;
+
LinkableValueNode::Vocab ret;
switch(get_type())
LinkableValueNode::Vocab ret;
switch(get_type())