Fix #27622: Sequencer Wipe Angle Incorrect
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 6 Dec 2011 15:32:10 +0000 (15:32 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 6 Dec 2011 15:32:10 +0000 (15:32 +0000)
Made wipe angle be real angle instead of making some ease effects which can be reached by animation curves.

source/blender/blenkernel/intern/seqeffects.c

index e8e9c7548064b23512df0ed58890d0b74f48afe5..718b3144677e0b2bd49530dc05b154d5ae9ed7d1 100644 (file)
@@ -1581,7 +1581,7 @@ typedef struct WipeZone {
 static void precalc_wipe_zone(WipeZone *wipezone, WipeVars *wipe, int xo, int yo)
 {
        wipezone->flip = (wipe->angle < 0);
-       wipezone->angle = pow(fabsf(wipe->angle)/45.0f, log(xo)/M_LN2);
+       wipezone->angle = tan(DEG2RAD(fabsf(wipe->angle)));
        wipezone->xo = xo;
        wipezone->yo = yo;
        wipezone->width = (int)(wipe->edgeWidth*((xo+yo)/2.0f));