[Bf-blender-cvs] [d48523cb4d4] blender-v3.0-release: Fix Cycles ray visibility panel missing for volume objects

Brecht Van Lommel noreply at git.blender.org
Fri Nov 12 17:11:05 CET 2021


Commit: d48523cb4d4f14016084abe9140d2e0d0ddee612
Author: Brecht Van Lommel
Date:   Wed Nov 3 19:47:45 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rBd48523cb4d4f14016084abe9140d2e0d0ddee612

Fix Cycles ray visibility panel missing for volume objects

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

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

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

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 0c9179b4ccf..428b9b25469 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -1051,7 +1051,7 @@ class CYCLES_OBJECT_PT_motion_blur(CyclesButtonsPanel, Panel):
 
 
 def has_geometry_visibility(ob):
-    return ob and ((ob.type in {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'LIGHT'}) or
+    return ob and ((ob.type in {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'LIGHT', 'VOLUME', 'POINTCLOUD', 'HAIR'}) or
                    (ob.instance_type == 'COLLECTION' and ob.instance_collection))



More information about the Bf-blender-cvs mailing list