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
parent b4cfe80547
commit d48523cb4d
1 changed files with 1 additions and 1 deletions

View File

@ -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))