[Bf-blender-cvs] [95969073635] master: Realtime Compositor: Allow in material preview mode

Omar Emara noreply at git.blender.org
Wed Aug 10 13:31:20 CEST 2022


Commit: 95969073635df089d76ad85b3a66d20bbaf62fcd
Author: Omar Emara
Date:   Wed Aug 10 13:30:31 2022 +0200
Branches: master
https://developer.blender.org/rB95969073635df089d76ad85b3a66d20bbaf62fcd

Realtime Compositor: Allow in material preview mode

This patch allows the viewport compositor to operate in Material Preview
mode.

Differential Revision: https://developer.blender.org/D15655

Reviewed By: Clement Foucault

===================================================================

M	source/blender/draw/intern/draw_manager.c

===================================================================

diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c
index b965045a424..4693e5f8e20 100644
--- a/source/blender/draw/intern/draw_manager.c
+++ b/source/blender/draw/intern/draw_manager.c
@@ -1226,7 +1226,7 @@ static bool is_compositor_enabled(void)
     return false;
   }
 
-  if (!(DST.draw_ctx.v3d->shading.type > OB_MATERIAL)) {
+  if (!(DST.draw_ctx.v3d->shading.type >= OB_MATERIAL)) {
     return false;
   }



More information about the Bf-blender-cvs mailing list