X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_sine.cpp;h=65552fac799382c9739e7a8cb8d537ed379361bc;hb=HEAD;hp=6e42dc778c482cd597578362e58e0deb09574d61;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_sine.cpp b/synfig-core/src/synfig/valuenode_sine.cpp index 6e42dc7..65552fa 100644 --- a/synfig-core/src/synfig/valuenode_sine.cpp +++ b/synfig-core/src/synfig/valuenode_sine.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_Sine::ValueNode_Sine(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_REAL: @@ -62,8 +64,6 @@ ValueNode_Sine::ValueNode_Sine(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -141,43 +141,23 @@ ValueNode_Sine::get_link_vfunc(int i)const return 0; } -int -ValueNode_Sine::link_count()const +LinkableValueNode::Vocab +ValueNode_Sine::get_children_vocab_vfunc()const { - return 2; -} + if(children_vocab.size()) + return children_vocab; -String -ValueNode_Sine::link_name(int i)const -{ - assert(i>=0 && i=0 && i