projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove an Autoconf warning about AC_COMPILE_IFELSE and AC_RUN_IFELSE being
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode_dotproduct.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode_dotproduct.cpp
b/synfig-core/trunk/src/synfig/valuenode_dotproduct.cpp
index
12a1c11
..
55de6ae
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode_dotproduct.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode_dotproduct.cpp
@@
-90,6
+90,9
@@
ValueNode_DotProduct::~ValueNode_DotProduct()
ValueBase
ValueNode_DotProduct::operator()(Time t)const
{
ValueBase
ValueNode_DotProduct::operator()(Time t)const
{
+ if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS"))
+ printf("%s:%d operator()\n", __FILE__, __LINE__);
+
Vector lhs((*lhs_)(t).get(Vector()));
Vector rhs((*rhs_)(t).get(Vector()));
Vector lhs((*lhs_)(t).get(Vector()));
Vector rhs((*rhs_)(t).get(Vector()));
@@
-99,6
+102,8
@@
ValueNode_DotProduct::operator()(Time t)const
return Angle::cos(lhs * rhs / lhs.mag() / rhs.mag()).mod();
case ValueBase::TYPE_REAL:
return lhs * rhs;
return Angle::cos(lhs * rhs / lhs.mag() / rhs.mag()).mod();
case ValueBase::TYPE_REAL:
return lhs * rhs;
+ default:
+ break;
}
assert(0);
}
assert(0);