X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_cos.cpp;h=efcd88aff6019b34459c26b409a9bc4a1e759684;hb=ecff046513a5c0bd64db58b69fdd2fb42736bca7;hp=13f583dbc277b3e46cf5dd21f8dc309c29806f91;hpb=6c27d1b6cf4694a873542cb264c650893f2c6e0e;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_cos.cpp b/synfig-core/trunk/src/synfig/valuenode_cos.cpp index 13f583d..efcd88a 100644 --- a/synfig-core/trunk/src/synfig/valuenode_cos.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_cos.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 @@ -86,6 +86,9 @@ ValueNode_Cos::~ValueNode_Cos() ValueBase ValueNode_Cos::operator()(Time t)const { + if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS")) + printf("%s:%d operator()\n", __FILE__, __LINE__); + return Angle::cos( (*angle_)(t).get(Angle()) @@ -113,21 +116,14 @@ ValueNode_Cos::check_type(ValueBase::Type type) } bool -ValueNode_Cos::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_Cos::set_link_vfunc(int i,ValueNode::Handle value) { assert(i>=0 && i