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-11 18:51:53 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-03-11 18:51:53 +0300
commit9ef7759bf030344d4d44c0ac75c706ce40b98d04 (patch)
treee9f223eea82a04484ee0becab834106b0a22d8f6 /source/blender/blenkernel
parente1698e37500a0cfe1b5744a4de691edc2ef52158 (diff)
Fix (unreported) bad user refcounting of viewer image ID.
This is typical case where you do not want to use actual ID refcounting, but only the shallow 'user real' (aka 'user one') system...
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index 7a697f19b8b..4220408749a 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -3023,7 +3023,7 @@ Image *BKE_image_ensure_viewer(Main *bmain, int type, const char *name)
/* happens on reload, imagewindow cannot be image user when hidden*/
if (ima->id.us == 0) {
- id_us_plus(&ima->id);
+ id_us_ensure_real(&ima->id);
}
return ima;