[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46666] branches/soc-2011-tomato/source/ blender/editors/transform/transform.c: Tomato: fix usage of uninitialized variables in applyAspectRatio

Sergey Sharybin sergey.vfx at gmail.com
Tue May 15 16:44:33 CEST 2012


Revision: 46666
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46666
Author:   nazgul
Date:     2012-05-15 14:44:32 +0000 (Tue, 15 May 2012)
Log Message:
-----------
Tomato: fix usage of uninitialized variables in applyAspectRatio

Thanks Keir for pointing into issue!

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/editors/transform/transform.c

Modified: branches/soc-2011-tomato/source/blender/editors/transform/transform.c
===================================================================
--- branches/soc-2011-tomato/source/blender/editors/transform/transform.c	2012-05-15 14:01:02 UTC (rev 46665)
+++ branches/soc-2011-tomato/source/blender/editors/transform/transform.c	2012-05-15 14:44:32 UTC (rev 46666)
@@ -305,10 +305,12 @@
 			float aspx, aspy;
 			int width, height;
 
+			ED_space_clip_size(sc, &width, &height);
+
 			if (t->options & CTX_MOVIECLIP)
-				ED_space_clip_size(sc, &width, &height);
+				ED_space_clip_aspect(sc, &aspx, &aspy);
 			else if (t->options & CTX_MASK)
-				ED_space_clip_aspect(sc, &aspx, &aspy);
+				ED_space_clip_mask_aspect(sc, &aspx, &aspy);
 
 			vec[0] *= width / aspx;
 			vec[1] *= height / aspy;




More information about the Bf-blender-cvs mailing list