X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_switch.cpp;h=d52d87f819ff1aac84b6550e96e6e69375e595d2;hb=2b2950e88fb6c4bfa36ec91eb86de33c6c27fafe;hp=5fc50ce5bf79be87232ce6ebd4b0df4487abbde3;hpb=d4cb326591ea23f82d341eb368b3d183b46f56c7;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_switch.cpp b/synfig-core/src/synfig/valuenode_switch.cpp index 5fc50ce..d52d87f 100644 --- a/synfig-core/src/synfig/valuenode_switch.cpp +++ b/synfig-core/src/synfig/valuenode_switch.cpp @@ -58,6 +58,8 @@ ValueNode_Switch::ValueNode_Switch(const ValueBase::Type &x): ValueNode_Switch::ValueNode_Switch(const ValueNode::Handle &x): LinkableValueNode(x->get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); set_link("link_off",x); set_link("link_on",x); set_link("switch",ValueNode_Const::create(bool(false))); @@ -108,49 +110,6 @@ ValueNode_Switch::get_link_vfunc(int i)const return 0; } -int -ValueNode_Switch::link_count()const -{ - return 3; -} - -String -ValueNode_Switch::link_name(int i)const -{ - assert(i>=0 && i=0 && i