Revision: 37206
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37206
Author:   ton
Date:     2011-06-05 12:57:09 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
Bugfix: new DPI-controlled UI size code was setting 'view2d re-init'
flag on ED_area_initialize(). This however was causing 2 problems;
- the view state got reset (popping window view back)
- the view2d operator polls failed (sliders didnt work)

This re-init was only needed for the headers though, limiting it
to these types of regions solves it.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/screen/area.c
    trunk/blender/source/blender/editors/space_api/spacetypes.c

Modified: trunk/blender/source/blender/editors/screen/area.c
===================================================================
--- trunk/blender/source/blender/editors/screen/area.c  2011-06-05 12:47:17 UTC 
(rev 37205)
+++ trunk/blender/source/blender/editors/screen/area.c  2011-06-05 12:57:09 UTC 
(rev 37206)
@@ -967,8 +967,9 @@
                        uiFreeBlocks(NULL, &ar->uiblocks);      
                }
                
-               /* rechecks all 2d matrices */
-               ar->v2d.flag &= ~V2D_IS_INITIALISED;
+               /* rechecks 2d matrix for header on dpi changing, do not do for 
other regions, it resets view && blocks view2d operator polls (ton) */
+               if(ar->regiontype==RGN_TYPE_HEADER)
+                       ar->v2d.flag &= ~V2D_IS_INITIALISED;
        }
 }
 

Modified: trunk/blender/source/blender/editors/space_api/spacetypes.c
===================================================================
--- trunk/blender/source/blender/editors/space_api/spacetypes.c 2011-06-05 
12:47:17 UTC (rev 37205)
+++ trunk/blender/source/blender/editors/space_api/spacetypes.c 2011-06-05 
12:57:09 UTC (rev 37206)
@@ -70,6 +70,9 @@
        const ListBase *spacetypes;
        SpaceType *type;
 
+       /* UI_UNIT_X is now a variable, is used in some spacetype inits? */
+       U.widget_unit= 20;
+       
        /* create space types */
        ED_spacetype_outliner();
        ED_spacetype_time();

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

Reply via email to