Bugfix: new DPI-controlled UI size code was setting 'view2d re-init'
[blender.git] / source / blender / editors / space_api / spacetypes.c
index 8d8cdcc7183368d6ce2187bf7a6b7dbd8ea05ae0..4f8cb8a57b2013984ec6c5c50b176e23ff6aa436 100644 (file)
@@ -70,6 +70,9 @@ void ED_spacetypes_init(void)
        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();