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_realstring.cpp
diff --git
a/synfig-core/src/synfig/valuenode_realstring.cpp
b/synfig-core/src/synfig/valuenode_realstring.cpp
index
181ef15
..
cb0f4e6
100644
(file)
--- a/
synfig-core/src/synfig/valuenode_realstring.cpp
+++ b/
synfig-core/src/synfig/valuenode_realstring.cpp
@@
-54,6
+54,8
@@
using namespace synfig;
ValueNode_RealString::ValueNode_RealString(const ValueBase &value):
LinkableValueNode(value.get_type())
{
ValueNode_RealString::ValueNode_RealString(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(value.get_type())
{
case ValueBase::TYPE_STRING:
switch(value.get_type())
{
case ValueBase::TYPE_STRING:
@@
-210,6
+212,9
@@
ValueNode_RealString::check_type(ValueBase::Type type)
LinkableValueNode::Vocab
ValueNode_RealString::get_children_vocab_vfunc()const
{
LinkableValueNode::Vocab
ValueNode_RealString::get_children_vocab_vfunc()const
{
+ if(children_vocab.size())
+ return children_vocab;
+
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"real")
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"real")