X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_and.cpp;h=ada281bf805b22083d78a3f5f41e53bd4264f721;hb=2b2950e88fb6c4bfa36ec91eb86de33c6c27fafe;hp=cae2bebb03c31e2c9cd7a2982aae18c154eb5602;hpb=27d3ae1a22e9dfdcfff2a77a4a2a3d0d8434e845;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_and.cpp b/synfig-core/src/synfig/valuenode_and.cpp index cae2beb..ada281b 100644 --- a/synfig-core/src/synfig/valuenode_and.cpp +++ b/synfig-core/src/synfig/valuenode_and.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_And::ValueNode_And(const ValueBase &x): LinkableValueNode(x.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); bool value(x.get(bool())); set_link("link1", ValueNode_Const::create(bool(true))); @@ -102,12 +104,6 @@ ValueNode_And::get_link_vfunc(int i)const return 0; } -int -ValueNode_And::link_count()const -{ - return 2; -} - ValueBase ValueNode_And::operator()(Time t)const { @@ -139,8 +135,11 @@ ValueNode_And::check_type(ValueBase::Type type) } LinkableValueNode::Vocab -ValueNode_And::get_param_vocab() const +ValueNode_And::get_children_vocab_vfunc() const { + if(children_vocab.size()) + return children_vocab; + LinkableValueNode::Vocab ret; ret.push_back(ParamDesc(ValueBase(),"link1")