diff options
author | Ton Roosendaal <ton@blender.org> | 2009-02-18 21:08:33 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-02-18 21:08:33 +0300 |
commit | 66698e9d71c3ff900ff45a01051899f22399950f (patch) | |
tree | a01c5c21831e41742243ad2395c038e0a7d3c89b /source/blender/blenkernel | |
parent | 1a9e68bde5cfffda011297465474f5596d5bce84 (diff) |
2.5
Cleanup of saving code for Image window.
Little extra: added poll() check for buttons, greying out inactive
menu items or buttons. You can see it work in Image menu.
(Item 'save image' is grey when it wasn't saved, then you have to
use the 'save as' item).
Carefully designing poll checks is worth a trial once. :)
Do note that cpu time for polls should be totally minimal.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index f6d604bdec7..685bef4fdc1 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -443,7 +443,7 @@ static ImBuf *add_ibuf_size(int width, int height, char *name, int floatbuf, sho rect= (unsigned char*)ibuf->rect; } - strcpy(ibuf->name, "Untitled"); + strcpy(ibuf->name, "//Untitled"); ibuf->userflags |= IB_BITMAPDIRTY; if (uvtestgrid) { |