Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/src/toolbox.c')
-rw-r--r--source/blender/src/toolbox.c5
1 files changed, 2 insertions, 3 deletions
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++;
}