diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-03-11 18:51:53 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-03-11 18:51:53 +0300 |
commit | 9ef7759bf030344d4d44c0ac75c706ce40b98d04 (patch) | |
tree | e9f223eea82a04484ee0becab834106b0a22d8f6 /source/blender | |
parent | e1698e37500a0cfe1b5744a4de691edc2ef52158 (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')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 2 |
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; |