[Bf-blender-cvs] [c379223053e] blender-v3.1-release: Fix wrong function call in Cycles acceleration UI poll.

Thomas Dinges noreply at git.blender.org
Thu Feb 3 09:58:26 CET 2022


Commit: c379223053e7187e71ff031bb61938edaa3959af
Author: Thomas Dinges
Date:   Thu Feb 3 09:57:24 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rBc379223053e7187e71ff031bb61938edaa3959af

Fix wrong function call in Cycles acceleration UI poll.

Thanks to Sergey for spotting this mistake.

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

M	intern/cycles/blender/addon/ui.py

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

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index aa5f6740933..e4b2fef87c3 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -669,7 +669,7 @@ class CYCLES_RENDER_PT_performance_acceleration_structure(CyclesButtonsPanel, Pa
 
     @classmethod
     def poll(cls, context):
-        return not use_optix(context) or has_multi_device(context)
+        return not use_optix(context) or use_multi_device(context)
 
     def draw(self, context):
         import _cycles



More information about the Bf-blender-cvs mailing list