diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-21 16:39:02 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-21 16:39:02 +0300 |
commit | edccdf934018264002c034906e8a287d12b7ead7 (patch) | |
tree | d557b138546774d0332d57f7b2de56caa52743ba /source/blender/src/header_image.c | |
parent | fc00e73a83cef8821212c0f94cf6ee4580c2754f (diff) |
Packing Images fix:
- a 'procedural image' like 'UV Test Grid' now can be directly packed,
it does ask first for confirming to pack it as PNG
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index 0d9f76b1681..340170c03e2 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -1162,7 +1162,7 @@ void image_buttons(void) if (ima->packedfile) { headerbuttons_packdummy = 1; } - if (ima->packedfile && (ibuf->userflags & IB_BITMAPDIRTY)) + if (ima->packedfile && ibuf && (ibuf->userflags & IB_BITMAPDIRTY)) uiDefIconButBitI(block, TOG, 1, B_SIMA_REPACK, ICON_UGLYPACKAGE, xco,0,XIC,YIC, &headerbuttons_packdummy, 0, 0, 0, 0, "Re-Pack this image as PNG"); else uiDefIconButBitI(block, TOG, 1, B_SIMAPACKIMA, ICON_PACKAGE, xco,0,XIC,YIC, &headerbuttons_packdummy, 0, 0, 0, 0, "Pack/Unpack this image"); |