diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-20 22:23:57 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-20 22:23:57 +0300 |
commit | b95d5bbf444fb405dcad8cf9732d3fc525e456cc (patch) | |
tree | fffb026ad8da9d758760a94ab13e7b71d0e247f9 /source/blender/src/header_image.c | |
parent | a76fcf6cb93b5e291593ccce5c2dc44d77d97983 (diff) |
Two bugfixes for Image commit:
- Jkey press without a render crashed
- UV FaceSelect, assign/view image, crashed all over... :)
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index d1bfcdbe125..e2839307212 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -1067,8 +1067,8 @@ static uiBlock *image_uvsmenu(void *arg_unused) void image_buttons(void) { - Image *ima= G.sima->image; - ImBuf *ibuf= BKE_image_get_ibuf(ima, &G.sima->iuser); + Image *ima; + ImBuf *ibuf; uiBlock *block; short xco, xmax; char naam[256], *menuname; @@ -1084,6 +1084,8 @@ void image_buttons(void) else uiBlockSetCol(block, TH_HEADERDESEL); what_image(G.sima); + ima= G.sima->image; + ibuf= BKE_image_get_ibuf(ima, &G.sima->iuser); curarea->butspacetype= SPACE_IMAGE; @@ -1187,7 +1189,7 @@ void image_buttons(void) uiDefIconBut(block, BUT, B_SIMA_RECORD, ICON_REC, xco, 0, XIC, YIC, 0, 0, 0, 0, 0, "Record Composite"); xco+= XIC; } - if((ima->type==IMA_TYPE_COMPOSITE) || ELEM(G.sima->image->source, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE)) { + if((ima->type==IMA_TYPE_COMPOSITE) || ELEM(ima->source, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE)) { uiDefIconBut(block, BUT, B_SIMA_PLAY, ICON_PLAY, xco, 0, XIC, YIC, 0, 0, 0, 0, 0, "Play"); xco+= XIC; } |