X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_step.cpp;h=06a5935004d46aebf1d32e8703fdf9a87263c7d0;hb=HEAD;hp=98d9d80deec778d305be542fc9bc1577b7ce38e1;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_step.cpp b/synfig-core/src/synfig/valuenode_step.cpp index 98d9d80..06a5935 100644 --- a/synfig-core/src/synfig/valuenode_step.cpp +++ b/synfig-core/src/synfig/valuenode_step.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_Step::ValueNode_Step(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); set_link("duration", ValueNode_Const::create(Time(1))); set_link("start_time", ValueNode_Const::create(Time(0))); set_link("intersection", ValueNode_Const::create(Real(0.5))); @@ -81,8 +83,6 @@ ValueNode_Step::ValueNode_Step(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -184,51 +184,33 @@ ValueNode_Step::get_link_vfunc(int i)const } } -int -ValueNode_Step::link_count()const +LinkableValueNode::Vocab +ValueNode_Step::get_children_vocab_vfunc()const { - return 4; -} + if(children_vocab.size()) + return children_vocab; -String -ValueNode_Step::link_name(int i)const -{ - assert(i>=0 && i=0 && i