Fix for sequencer invalid rounding, double wipe at 0 angle
authorCampbell Barton <ideasman42@gmail.com>
Sat, 1 Mar 2014 02:39:36 +0000 (13:39 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 1 Mar 2014 02:39:36 +0000 (13:39 +1100)
source/blender/blenkernel/intern/seqeffects.c

index 9755d4b22e7096b0f179f92021e6f9be82236bf4..0d05966dfa5bcde5a84735d9f056334e382c668b 100644 (file)
@@ -1350,8 +1350,8 @@ static float check_zone(WipeZone *wipezone, int x, int y, Sequence *seq, float f
                                b3 = yo - posy * 0.5f;
                                b2 = y;
 
-                               hyp = abs(y - posy * 0.5f);
-                               hyp2 = abs(y - (yo - posy * 0.5f));
+                               hyp = fabsf(y - posy * 0.5f);
+                               hyp2 = fabsf(y - (yo - posy * 0.5f));
                        }
                        else {
                                b1 = posy * 0.5f - (-angle) * posx * 0.5f;