[Bf-blender-cvs] [2dcdfab94c7] master: Realtime Compositor: Warn about unsupported MacOS

Omar Emara noreply at git.blender.org
Thu Nov 24 08:27:51 CET 2022


Commit: 2dcdfab94c72ef092d281d415704f75953349d11
Author: Omar Emara
Date:   Thu Nov 24 09:25:44 2022 +0200
Branches: master
https://developer.blender.org/rB2dcdfab94c72ef092d281d415704f75953349d11

Realtime Compositor: Warn about unsupported MacOS

This patch warns the user that MacOS is not supported for the viewport
compositor in the shading panel.

See T102353.

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

M	release/scripts/startup/bl_ui/space_view3d.py

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

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 656ef6663e4..cea5df69bf8 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6211,10 +6211,14 @@ class VIEW3D_PT_shading_compositor(Panel):
     def draw(self, context):
         shading = context.space_data.shading
 
-        row = self.layout.row()
         import sys
-        row.active = sys.platform != "darwin"
+        is_macos = sys.platform == "darwin"
+
+        row = self.layout.row()
+        row.active = not is_macos
         row.prop(shading, "use_compositor", expand=True)
+        if is_macos and shading.use_compositor != "DISABLED":
+            self.layout.label(text="Compositor not supported on MacOS.", icon="ERROR")
 
 
 class VIEW3D_PT_gizmo_display(Panel):



More information about the Bf-blender-cvs mailing list