X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_gradientrotate.cpp;h=642856dcf2ed2b80533a9ef9b0f55d0ca812f2da;hb=756c0d29ac1742f231e6615f9a577e574e35a4af;hp=8de8007f9e1e4f98b9aee3368c45d31187ef3c49;hpb=7c6c9bc865caa5e585805199f7c2e5f595b1c030;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp b/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp index 8de8007..642856d 100644 --- a/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -88,26 +88,6 @@ synfig::ValueNode_GradientRotate::~ValueNode_GradientRotate() unlink_all(); } -bool -synfig::ValueNode_GradientRotate::set_gradient(ValueNode::Handle a) -{ - if(a->get_type()!=ValueBase::TYPE_GRADIENT&& !PlaceholderValueNode::Handle::cast_dynamic(a)) - return false; - - ref_gradient=a; - - return true; -} - -bool -synfig::ValueNode_GradientRotate::set_offset(ValueNode::Handle b) -{ - if(b->get_type()!=ValueBase::TYPE_REAL&& !PlaceholderValueNode::Handle::cast_dynamic(b)) - return false; - ref_offset=b; - return true; -} - synfig::ValueBase synfig::ValueNode_GradientRotate::operator()(Time t)const { @@ -122,20 +102,15 @@ synfig::ValueNode_GradientRotate::operator()(Time t)const } bool -ValueNode_GradientRotate::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_GradientRotate::set_link_vfunc(int i,ValueNode::Handle value) { assert(i>=0 && i