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:
authorJeroen Bakker <jeroen@blender.org>2020-12-02 18:19:15 +0300
committerJeroen Bakker <jeroen@blender.org>2020-12-02 18:19:15 +0300
commit58cc8938e16acb13380dc345c859848bb1b3d34c (patch)
tree161e0e4d1d26fb0c3c6729b9815b07c921e08838 /source/blender/editors/space_image
parent60760bd470270111008716070fd3fb2cb8a376a7 (diff)
Fix T83309: Hide metadata when overlays are off.
Inconsistency between overlay popover and implementation. Now the metadata will not be visible when the overlays are turned off.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/space_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 749e61955d9..9a36c88f6d1 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -659,7 +659,7 @@ static void image_main_region_draw(const bContext *C, ARegion *region)
/* Draw Meta data of the image isn't added to the DrawManager as it is
* used in other areas as well. */
- if (sima->flag & SI_DRAW_METADATA) {
+ if (sima->overlay.flag & SI_OVERLAY_SHOW_OVERLAYS && sima->flag & SI_DRAW_METADATA) {
void *lock;
/* `ED_space_image_get_zoom` temporarily locks the image, so this needs to be done before
* the image is locked when calling `ED_space_image_acquire_buffer`. */