X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_step.cpp;h=9b9a160f862ab32df820b0ac3e9976da934a4a64;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=98d9d80deec778d305be542fc9bc1577b7ce38e1;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_step.cpp b/synfig-core/src/synfig/valuenode_step.cpp index 98d9d80..9b9a160 100644 --- a/synfig-core/src/synfig/valuenode_step.cpp +++ b/synfig-core/src/synfig/valuenode_step.cpp @@ -81,8 +81,6 @@ ValueNode_Step::ValueNode_Step(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -232,3 +230,31 @@ ValueNode_Step::get_link_index_from_name(const String &name)const throw Exception::BadLinkName(name); } + +LinkableValueNode::Vocab +ValueNode_Step::get_children_vocab_vfunc()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"link") + .set_local_name(_("Link")) + .set_description(_("The value node used to make the step")) + ); + + ret.push_back(ParamDesc(ValueBase(),"duration") + .set_local_name(_("Duration")) + .set_description(_("The duration of the step")) + ); + + ret.push_back(ParamDesc(ValueBase(),"start_time") + .set_local_name(_("Start Time")) + .set_description(_("The time when the step conversion starts")) + ); + + ret.push_back(ParamDesc(ValueBase(),"intersection") + .set_local_name(_("Intersection")) + .set_description(_("Value that define whether the step is centerd on the value [0,1]")) + ); + + return ret; +}