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_sine.cpp
diff --git
a/synfig-core/src/synfig/valuenode_sine.cpp
b/synfig-core/src/synfig/valuenode_sine.cpp
index
21efad9
..
17d8efc
100644
(file)
--- a/
synfig-core/src/synfig/valuenode_sine.cpp
+++ b/
synfig-core/src/synfig/valuenode_sine.cpp
@@
-53,6
+53,8
@@
using namespace synfig;
ValueNode_Sine::ValueNode_Sine(const ValueBase &value):
LinkableValueNode(value.get_type())
{
ValueNode_Sine::ValueNode_Sine(const ValueBase &value):
LinkableValueNode(value.get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(value.get_type())
{
case ValueBase::TYPE_REAL:
switch(value.get_type())
{
case ValueBase::TYPE_REAL:
@@
-181,8
+183,11
@@
ValueNode_Sine::get_link_index_from_name(const String &name)const
}
LinkableValueNode::Vocab
}
LinkableValueNode::Vocab
-ValueNode_Sine::get_
param_vocab
()const
+ValueNode_Sine::get_
children_vocab_vfunc
()const
{
{
+ if(children_vocab.size())
+ return children_vocab;
+
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"angle")
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"angle")