diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-25 06:32:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-25 06:32:02 +0400 |
commit | a992fec4e7d6a47bbffb5a9cdc69677b57cba6cf (patch) | |
tree | c42d08e4ed514449891e3bc7e976330e715bedeb /source/blender/blenkernel | |
parent | a42c490a04ff06c4baeb3fb43c96767a17e4d960 (diff) |
bugfix
- image filepath in the image view would only be set when first loading a frame.
- check to free animated image buffers on opengl render was comparing against the wrong value.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index d2612e90945..0e282aa6449 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -1979,8 +1979,14 @@ static ImBuf *image_get_ibuf_threadsafe(Image *ima, ImageUser *iuser, int *frame ibuf= image_get_ibuf(ima, 0, frame); /* XXX temp stuff? */ - if(ima->lastframe != frame) + if(ima->lastframe != frame) { ima->tpageflag |= IMA_TPAGE_REFRESH; + if(ibuf) { + /* without this the image name only updates + * on first load which is quite confusing */ + BLI_strncpy(ima->name, ibuf->name, sizeof(ima->name)); + } + } ima->lastframe = frame; } else if(ima->type==IMA_TYPE_MULTILAYER) { |