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_not.cpp
diff --git
a/synfig-core/src/synfig/valuenode_not.cpp
b/synfig-core/src/synfig/valuenode_not.cpp
index
dfe0f9a
..
9e835c0
100644
(file)
--- a/
synfig-core/src/synfig/valuenode_not.cpp
+++ b/
synfig-core/src/synfig/valuenode_not.cpp
@@
-54,6
+54,8
@@
using namespace synfig;
ValueNode_Not::ValueNode_Not(const ValueBase &x):
LinkableValueNode(x.get_type())
{
ValueNode_Not::ValueNode_Not(const ValueBase &x):
LinkableValueNode(x.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
bool value(x.get(bool()));
set_link("link", ValueNode_Const::create(!value));
bool value(x.get(bool()));
set_link("link", ValueNode_Const::create(!value));
@@
-161,6
+163,9
@@
ValueNode_Not::check_type(ValueBase::Type type)
LinkableValueNode::Vocab
ValueNode_Not::get_children_vocab_vfunc()const
{
LinkableValueNode::Vocab
ValueNode_Not::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")