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:
authorBastien Montagne <b.mont29@gmail.com>2020-03-06 19:11:55 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-03-06 19:13:27 +0300
commitb825a95ec311a169d33fe21e28418f11a516c82f (patch)
treee6eef5637a4f2771832c857c8911704da723d013 /source/blender/editors
parentf4936de9186be818e758408f70fb8e9d8c7cdade (diff)
Cleanup: Image: Move to IDTypeInfo and remove unused BKE API.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 44ff11aa84a..cf4ca80a331 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1297,6 +1297,9 @@ static void gpencil_fill_exit(bContext *C, wmOperator *op)
if (tgpf->ima) {
for (Image *ima = bmain->images.first; ima; ima = ima->id.next) {
if (ima == tgpf->ima) {
+ /* XXX This is super, super suspicious!
+ * There should NEVER be any need to handle datablocks in Main in such custom code.
+ * Please change to using BKE_id_free() or similar! */
BLI_remlink(&bmain->images, ima);
BKE_image_free(tgpf->ima);
MEM_SAFE_FREE(tgpf->ima);