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:
authorClément Foucault <foucault.clem@gmail.com>2020-02-26 17:33:44 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-02-26 17:33:44 +0300
commit5c490d437743a2e5b8e47620df32199ce8b7a3b0 (patch)
tree88ef6b84d9e721193ae7153d8b35a62ea0c05149
parentfe41c1ec0b79b2be22f7bc14c92ce94737f91800 (diff)
Fix T74221 Crash when changing Image Source in UV editor
-rw-r--r--source/blender/editors/space_image/image_buttons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index f4688ce17fd..54bd2f37f3a 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -985,7 +985,7 @@ void uiTemplateImage(uiLayout *layout,
void *lock;
ImBuf *ibuf = BKE_image_acquire_ibuf(ima, iuser, &lock);
- if (ibuf->rect_float && (ibuf->flags & IB_halffloat) == 0) {
+ if (ibuf && ibuf->rect_float && (ibuf->flags & IB_halffloat) == 0) {
uiItemR(col, &imaptr, "use_half_precision", 0, NULL, ICON_NONE);
}
BKE_image_release_ibuf(ima, ibuf, lock);