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_integer.cpp
diff --git
a/synfig-core/src/synfig/valuenode_integer.cpp
b/synfig-core/src/synfig/valuenode_integer.cpp
index
12b3a9c
..
8b44504
100644
(file)
--- a/
synfig-core/src/synfig/valuenode_integer.cpp
+++ b/
synfig-core/src/synfig/valuenode_integer.cpp
@@
-59,6
+59,8
@@
ValueNode_Integer::ValueNode_Integer(const ValueBase::Type &x):
ValueNode_Integer::ValueNode_Integer(const ValueBase &x):
LinkableValueNode(x.get_type())
{
ValueNode_Integer::ValueNode_Integer(const ValueBase &x):
LinkableValueNode(x.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(x.get_type())
{
case ValueBase::TYPE_ANGLE:
switch(x.get_type())
{
case ValueBase::TYPE_ANGLE:
@@
-201,6
+203,9
@@
ValueNode_Integer::check_type(ValueBase::Type type __attribute__ ((unused)))
LinkableValueNode::Vocab
ValueNode_Integer::get_children_vocab_vfunc()const
{
LinkableValueNode::Vocab
ValueNode_Integer::get_children_vocab_vfunc()const
{
+ if(children_vocab.size())
+ return children_vocab;
+
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"integer")
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"integer")