diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-10 13:17:04 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-10 13:17:04 +0300 |
commit | 9a145481041c51c17d6ec1fba2b10621dc93ecce (patch) | |
tree | e191bcd78569b5e3d7604941f7aaa56ff8b22c54 /source/blender/src/drawmesh.c | |
parent | a54bd4993fa825df60e43f307c58d47981b37cea (diff) |
Old feature request: undo system now restores images without reloading.
Was surprisingly easy to add, compiant with file reading and undo code.
Currently only the Image->ibuf gets restored, and its opengl binding, so
for realtime texture it works nicely. Also texture images are not freed
inbetween undo steps
Notes:
- Painting textures will just keep the painted image, there's no undo
yet for that
- If this works satisfying, I'll extend it to compositing previews
TEST IT WELL PLEASE! :)
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r-- | source/blender/src/drawmesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c index 83ffa6f44d8..727a6ae744e 100644 --- a/source/blender/src/drawmesh.c +++ b/source/blender/src/drawmesh.c @@ -474,7 +474,7 @@ void free_realtime_image(Image *ima) glDeleteTextures(ima->totbind, (GLuint *)ima->repbind); MEM_freeN(ima->repbind); - ima->repbind= 0; + ima->repbind= NULL; } } |