Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2007-11-28 00:48:14 +0300
committerAndrea Weikert <elubie@gmx.net>2007-11-28 00:48:14 +0300
commitab2e2ec34b14a5410cb0ae2ce37e1f7e90dd432d (patch)
tree89612a392d97264a2005a9abe0a24ce0a94f9983 /source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c
parentee40a913a57cba3e094031a5542a4c0e682aab52 (diff)
== MSVC 7.1 projectfiles ==
- update for new particle system - made blenderplayer.exe compile again (DDS library missing) - exchanged a few float math functions (logf, sinf, cosf, expf, powf) with their double counterparts in CMP_nodes (MSVC chokes on them, because the compiler is not C99 compliant)
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c b/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c
index d836a829696..6a40018e659 100644
--- a/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c
+++ b/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c
@@ -89,8 +89,8 @@ static void do_chroma_key(bNode *node, float *out, float *in)
if(kfg>0.0) { /* found a pixel that is within key color */
newY=in[0]-(1-c->t3)*kfg;
- newCb=in[1]-kfg*cosf(theta);
- newCr=in[2]-kfg*sinf(theta);
+ newCb=in[1]-kfg*cos((double)theta);
+ newCr=in[2]-kfg*sin((double)theta);
alpha=(kfg+c->fsize)*(c->fstrength);
beta=atan2(newCr,newCb);