2.5
authorTon Roosendaal <ton@blender.org>
Wed, 20 May 2009 16:23:55 +0000 (16:23 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 20 May 2009 16:23:55 +0000 (16:23 +0000)
Fixes:

- Render (F12) would choose the (hidden) info window in cases, disabled
  that.
- Browsing ID's (like Image in Image editor) failed when no ID was
  assigned yet.

source/blender/editors/interface/interface_utils.c
source/blender/editors/screen/screen_ops.c

index e9d96446c115d37d45505bd262983ff48a3371d8..4521bd57a3a9ce07e8ab36b3b12ae98033844d4a 100644 (file)
@@ -404,11 +404,11 @@ static void idpoin_cb(bContext *C, void *arg_params, void *arg_event)
                        else return;
                        break;
                case UI_ID_BROWSE: {
-                       if(id==0) id= lb->first;
-                       if(id==0) return;
+                       /* ID can be NULL, if nothing was assigned yet */
+                       if(lb->first==NULL) return;
 
                        if(params->browsenr== -2) {
-                               /* XXX implement or find a replacement
+                               /* XXX implement or find a replacement (ID can be NULL!)
                                 * activate_databrowse((ID *)G.buts->lockpoin, GS(id->name), 0, B_MESHBROWSE, &params->browsenr, do_global_buttons); */
                                return;
                        }
index 10139f9851f0e2c8c54e26cf04594b01776d6c08..7ada548927ff652813aebe399ede071f07b1a995 100644 (file)
@@ -1979,7 +1979,7 @@ static ScrArea *biggest_non_image_area(bContext *C)
        short foundwin= 0;
        
        for(sa= sc->areabase.first; sa; sa= sa->next) {
-               if(sa->winx > 10 && sa->winy > 10) {
+               if(sa->winx > 30 && sa->winy > 30) {
                        size= sa->winx*sa->winy;
                        if(sa->spacetype == SPACE_BUTS) {
                                if(foundwin == 0 && size > bwmaxsize) {