X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_gradientrotate.cpp;h=709a99aeb1d72fdfd1bdca74c6556d2ed65ffa5e;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=156f32ed1474555689568e063904f4891726e86c;hpb=8eed22b9657ac7cb1881eab5c7b5c3d1f0c69468;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_gradientrotate.cpp b/synfig-core/src/synfig/valuenode_gradientrotate.cpp index 156f32e..709a99a 100644 --- a/synfig-core/src/synfig/valuenode_gradientrotate.cpp +++ b/synfig-core/src/synfig/valuenode_gradientrotate.cpp @@ -55,6 +55,8 @@ using namespace synfig; synfig::ValueNode_GradientRotate::ValueNode_GradientRotate(const Gradient& x): LinkableValueNode(synfig::ValueBase::TYPE_GRADIENT) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); set_link("gradient",ValueNode_Const::create(x)); set_link("offset",ValueNode_Const::create(Real(0))); } @@ -197,8 +199,11 @@ ValueNode_GradientRotate::check_type(ValueBase::Type type) } LinkableValueNode::Vocab -ValueNode_GradientRotate::get_param_vocab()const +ValueNode_GradientRotate::get_children_vocab_vfunc()const { + if(children_vocab.size()) + return children_vocab; + LinkableValueNode::Vocab ret; ret.push_back(ParamDesc(ValueBase(),"gradient")