Fix for sequencer invalid rounding, double wipe at 0 angle

This commit is contained in:
Campbell Barton 2014-03-01 13:39:36 +11:00
parent 6cc5bdc99e
commit ca4dde48f3
1 changed files with 2 additions and 2 deletions

View 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;