X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_gradientcolor.cpp;h=13cc831f56275d7b169a4119095344d69993a42a;hb=HEAD;hp=60c6e7e4ced6f6e0e3c7da48ffcd9c853ce5ad79;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_gradientcolor.cpp b/synfig-core/src/synfig/valuenode_gradientcolor.cpp index 60c6e7e..13cc831 100644 --- a/synfig-core/src/synfig/valuenode_gradientcolor.cpp +++ b/synfig-core/src/synfig/valuenode_gradientcolor.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_GradientColor::ValueNode_GradientColor(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_COLOR: @@ -64,8 +66,6 @@ ValueNode_GradientColor::ValueNode_GradientColor(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -127,49 +127,6 @@ ValueNode_GradientColor::get_link_vfunc(int i)const return 0; } -int -ValueNode_GradientColor::link_count()const -{ - return 3; -} - -String -ValueNode_GradientColor::link_local_name(int i)const -{ - assert(i>=0 && i=0 && i