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.
This commit is contained in:
parent
60760bd470
commit
58cc8938e1
Notes:
blender-bot
2023-02-14 09:34:18 +01:00
Referenced by issue #83309, Showing Overlays when Overlay is off
|
@ -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`. */
|
||||
|
|
Loading…
Reference in New Issue