diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-03-17 19:49:24 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-03-18 11:16:58 +0300 |
commit | aeff59073b23d50a39eb0a614d3907ac0d04994a (patch) | |
tree | 82be0630a4b256d0765be472923aeca129609242 /source/blender/draw/intern | |
parent | decfd5c1699a77c8dde326f10d13e689df07962f (diff) |
Fix T86219: Compositor backdrop not using Color Management View
Transforms in certain cases
This was caused by wrong flag checking in {rB278011e44d43}, which just
seems to be a copy-paste error.
For example, enabeling 'Auto-Offset' in the View menu would lead to CM
being ignored.
Maniphest Tasks: T86219
Differential Revision: https://developer.blender.org/D10751
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 2655319bbd4..a088c27d3f3 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -359,8 +359,8 @@ static void drw_viewport_colormanagement_set(void) } else if (DST.draw_ctx.space_data && DST.draw_ctx.space_data->spacetype == SPACE_NODE) { SpaceNode *snode = (SpaceNode *)DST.draw_ctx.space_data; - const eSpaceImage_Flag display_channels_mode = snode->flag; - const bool display_color_channel = (display_channels_mode & (SI_SHOW_ALPHA)) == 0; + const eSpaceNode_Flag display_channels_mode = snode->flag; + const bool display_color_channel = (display_channels_mode & SNODE_SHOW_ALPHA) == 0; if (display_color_channel) { use_render_settings = true; } |