Fix Cycles ray visibility panel missing for volume objects

This commit is contained in:
Brecht Van Lommel 2021-11-03 19:47:45 +01:00 committed by Harley Acheson
parent ddf66cd060
commit c671b5eee4
1 changed files with 1 additions and 1 deletions

View File

@ -1054,7 +1054,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))