diff options
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r-- | source/blender/src/header_info.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index d6c217534bb..03eed300520 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -529,15 +529,16 @@ static void check_packAll() // first check for dirty images Image *ima; - ima = G.main->image.first; - while (ima) { - if (ima->ibuf && (ima->ibuf->userflags &= IB_BITMAPDIRTY)) { - break; - } - ima= ima->id.next; + for(ima = G.main->image.first; ima; ima= ima->id.next) { + if (ima->ibufs.first) { /* XXX FIX */ + ImBuf *ibuf= BKE_image_get_ibuf(ima, NULL); + + if (ibuf && (ibuf->userflags &= IB_BITMAPDIRTY)) + break; } + } - if (ima == 0 || okee("Some images are painted on. These changes will be lost. Continue ?")) { + if (ima == NULL || okee("Some images are painted on. These changes will be lost. Continue ?")) { packAll(); G.fileflags |= G_AUTOPACK; } @@ -852,7 +853,7 @@ static void do_info_filemenu(void *arg, int event) } break; case 6: /* save image */ - BIF_save_rendered_image_fs(0); + BIF_save_rendered_image_fs(); break; case 22: /* save runtime */ activate_fileselect(FILE_SPECIAL, "Save Runtime", "", write_runtime_check); |