X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_log.cpp;h=59f82e59b439f294e0de6df33c42cfd579d94089;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=b44a4529a156059f5005be2954f278496d6ff169;hpb=376a3dcd5c49955bebcb04543446e7378b8ef298;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_log.cpp b/synfig-core/trunk/src/synfig/valuenode_log.cpp index b44a452..59f82e5 100644 --- a/synfig-core/trunk/src/synfig/valuenode_log.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_log.cpp @@ -7,7 +7,7 @@ ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** Copyright (c) 2007, 2008 Chris Moore -** Copyright (c) 2008 Carlos López +** Copyright (c) 2008 Carlos López ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -59,7 +59,7 @@ ValueNode_Logarithm::ValueNode_Logarithm(const ValueBase &x): Real epsilon(0.000001); value = exp(value); - + set_link("link", ValueNode_Const::create(Real(value))); set_link("epsilon", ValueNode_Const::create(Real(epsilon))); set_link("infinite", ValueNode_Const::create(Real(infinity))); @@ -149,6 +149,9 @@ ValueNode_Logarithm::get_link_index_from_name(const String &name)const ValueBase ValueNode_Logarithm::operator()(Time t)const { + if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS")) + printf("%s:%d operator()\n", __FILE__, __LINE__); + Real link = (*link_) (t).get(Real()); Real epsilon = (*epsilon_) (t).get(Real()); Real infinite = (*infinite_)(t).get(Real()); @@ -180,4 +183,4 @@ ValueNode_Logarithm::check_type(ValueBase::Type type) return type==ValueBase::TYPE_REAL; } - +