From: dooglus Date: Sun, 16 Sep 2007 22:06:58 +0000 (+0000) Subject: Fix 1795913. Subtract now works with colors. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3dc1abe34989fbb41dfdf6d8ac2a8a0085b7454f;p=synfig.git Fix 1795913. Subtract now works with colors. git-svn-id: http://svn.voria.com/code@682 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/valuenode_subtract.cpp b/synfig-core/trunk/src/synfig/valuenode_subtract.cpp index 0372731..a541edc 100644 --- a/synfig-core/trunk/src/synfig/valuenode_subtract.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_subtract.cpp @@ -75,8 +75,11 @@ ValueNode_Subtract::create(const ValueBase& x) { case ValueBase::TYPE_NIL: return value_node; - case ValueBase::TYPE_ANGLE: case ValueBase::TYPE_COLOR: + value_node->set_link("lhs",ValueNode_Const::create(x.get(Color()))); + value_node->set_link("rhs",ValueNode_Const::create(Color(0,0,0,0))); + break; + case ValueBase::TYPE_ANGLE: case ValueBase::TYPE_INTEGER: case ValueBase::TYPE_REAL: case ValueBase::TYPE_VECTOR: