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_blinecalctangent.cpp
diff --git
a/synfig-core/src/synfig/valuenode_blinecalctangent.cpp
b/synfig-core/src/synfig/valuenode_blinecalctangent.cpp
index
0598276
..
04278b8
100644
(file)
--- a/
synfig-core/src/synfig/valuenode_blinecalctangent.cpp
+++ b/
synfig-core/src/synfig/valuenode_blinecalctangent.cpp
@@
-58,6
+58,8
@@
using namespace synfig;
ValueNode_BLineCalcTangent::ValueNode_BLineCalcTangent(const ValueBase::Type &x):
LinkableValueNode(x)
{
ValueNode_BLineCalcTangent::ValueNode_BLineCalcTangent(const ValueBase::Type &x):
LinkableValueNode(x)
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
if(x!=ValueBase::TYPE_ANGLE && x!=ValueBase::TYPE_REAL && x!=ValueBase::TYPE_VECTOR)
throw Exception::BadType(ValueBase::type_local_name(x));
if(x!=ValueBase::TYPE_ANGLE && x!=ValueBase::TYPE_REAL && x!=ValueBase::TYPE_VECTOR)
throw Exception::BadType(ValueBase::type_local_name(x));
@@
-273,6
+275,9
@@
ValueNode_BLineCalcTangent::check_type(ValueBase::Type type)
LinkableValueNode::Vocab
ValueNode_BLineCalcTangent::get_children_vocab_vfunc()const
{
LinkableValueNode::Vocab
ValueNode_BLineCalcTangent::get_children_vocab_vfunc()const
{
+ if(children_vocab.size())
+ return children_vocab;
+
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"bline")
LinkableValueNode::Vocab ret;
ret.push_back(ParamDesc(ValueBase(),"bline")