X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_gradientcolor.cpp;h=980cf08fcc3ed13e12d9bcce3d2286d2a091b243;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=60c6e7e4ced6f6e0e3c7da48ffcd9c853ce5ad79;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_gradientcolor.cpp b/synfig-core/src/synfig/valuenode_gradientcolor.cpp index 60c6e7e..980cf08 100644 --- a/synfig-core/src/synfig/valuenode_gradientcolor.cpp +++ b/synfig-core/src/synfig/valuenode_gradientcolor.cpp @@ -64,8 +64,6 @@ ValueNode_GradientColor::ValueNode_GradientColor(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -187,3 +185,26 @@ ValueNode_GradientColor::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_COLOR; } + +LinkableValueNode::Vocab +ValueNode_GradientColor::get_children_vocab_vfunc()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"gradient") + .set_local_name(_("Gradient")) + .set_description(_("The gradient where the color is picked from")) + ); + + ret.push_back(ParamDesc(ValueBase(),"index") + .set_local_name(_("Index")) + .set_description(_("The position of the color at the gradient (0,1]")) + ); + + ret.push_back(ParamDesc(ValueBase(),"loop") + .set_local_name(_("Loop")) + .set_description(_("When checked, the index would loop")) + ); + + return ret; +}