X-Git-Url: https://git.pterodactylus.net/?p=synfig.git;a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_log.cpp;fp=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_log.cpp;h=7973a34c629b13cbf690dfd70b61f643a022de64;hp=4ddb8a7f0bcf0139a8daf195b0f00243c4e5905b;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hpb=d4cb326591ea23f82d341eb368b3d183b46f56c7 diff --git a/synfig-core/src/synfig/valuenode_log.cpp b/synfig-core/src/synfig/valuenode_log.cpp index 4ddb8a7..7973a34 100644 --- a/synfig-core/src/synfig/valuenode_log.cpp +++ b/synfig-core/src/synfig/valuenode_log.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_Logarithm::ValueNode_Logarithm(const ValueBase &x): LinkableValueNode(x.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); Real value(x.get(Real())); Real infinity(999999.0); Real epsilon(0.000001); @@ -186,6 +188,9 @@ ValueNode_Logarithm::check_type(ValueBase::Type type) LinkableValueNode::Vocab ValueNode_Logarithm::get_children_vocab_vfunc()const { + if(children_vocab.size()) + return children_vocab; + LinkableValueNode::Vocab ret; ret.push_back(ParamDesc(ValueBase(),"link")