From 253432bfc7c2a1dae224a03fb3055de19743ec67 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 20 Dec 2006 17:57:56 +0000 Subject: The Big Image refactor! Please read: http://www.blender3d.org/cms/Imaging.834.0.html Or in short: - adding MultiLayer Image support - recoded entire Image API - better integration of movie/sequence Images Was a whole load of work... went down for a week to do this. So, will need a lot of testing! Will be in irc all evening. --- source/blender/src/toolbox.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/src/toolbox.c') diff --git a/source/blender/src/toolbox.c b/source/blender/src/toolbox.c index 4601fa77b3a..c9fced04a00 100644 --- a/source/blender/src/toolbox.c +++ b/source/blender/src/toolbox.c @@ -74,6 +74,7 @@ #include "BKE_displist.h" #include "BKE_depsgraph.h" #include "BKE_global.h" +#include "BKE_image.h" #include "BKE_library.h" #include "BKE_mesh.h" #include "BKE_node.h" @@ -709,9 +710,7 @@ void replace_names_but(void) strcat(temp, ima->name+len); BLI_strncpy(ima->name, temp, sizeof(ima->name)); - if(ima->ibuf) IMB_freeImBuf(ima->ibuf); - ima->ibuf= 0; - ima->ok= 1; + BKE_image_signal(ima, NULL, IMA_SIGNAL_FREE); tot++; } -- cgit v1.2.3