diff options
author | Ton Roosendaal <ton@blender.org> | 2009-05-20 20:23:55 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-05-20 20:23:55 +0400 |
commit | 62945105041b1eeff3712db36d094d6417416f19 (patch) | |
tree | 31b99bb22e7f3e20e15c230c64ac63e36155e6bb /source/blender/editors/interface/interface_utils.c | |
parent | 8407c94f0be9f436b62c523408009b2e69dcb016 (diff) |
2.5
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.
Diffstat (limited to 'source/blender/editors/interface/interface_utils.c')
-rw-r--r-- | source/blender/editors/interface/interface_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_utils.c b/source/blender/editors/interface/interface_utils.c index e9d96446c11..4521bd57a3a 100644 --- a/source/blender/editors/interface/interface_utils.c +++ b/source/blender/editors/interface/interface_utils.c @@ -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, ¶ms->browsenr, do_global_buttons); */ return; } |