Revision: 15620
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15620
Author:   campbellbarton
Date:     2008-07-18 15:04:15 +0200 (Fri, 18 Jul 2008)

Log Message:
-----------
bugfix
the aspect of a block could become negative and default when scaling icons.
this is caused by the using viewRedrawForce (transforming a mesh) and drawing 
icons in the image panel.
must look into why bwin_getsinglematrix can give a negative value, probably 
because the opengl state is set incorrect.

This is still not correct because the aspect will be wrong. but at least it 
wont crash.

Modified Paths:
--------------
    trunk/blender/source/blender/src/interface.c

Modified: trunk/blender/source/blender/src/interface.c
===================================================================
--- trunk/blender/source/blender/src/interface.c        2008-07-18 11:00:34 UTC 
(rev 15619)
+++ trunk/blender/source/blender/src/interface.c        2008-07-18 13:04:15 UTC 
(rev 15620)
@@ -5405,7 +5405,9 @@
                int getsizex, getsizey;
 
                bwin_getsize(win, &getsizex, &getsizey);
-               block->aspect= 2.0/( (getsizex)*block->winmat[0][0]);
+               /* TODO - investigate why block->winmat[0][0] is negative
+                * in the image view when viewRedrawForce is called */
+               block->aspect= 2.0/fabs( (getsizex)*block->winmat[0][0]);
        }
 
        uiSetCurFont(block, font);


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to