diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2014-05-02 02:14:10 +0400 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2014-05-02 02:14:10 +0400 |
commit | 4e7780a34a91287743d70bc57644649a686a5a26 (patch) | |
tree | c05e7896519abe78a1481cb435c7799324860199 /intern/cycles | |
parent | 5f80a7ffe25fdda77904d06c8e7b6ff37731d25b (diff) |
Cycles UI:
Show the Ray Visibility panel for objects with dupli_group on, no reason to hide it.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 4cdc7210b01..f35cb1abd2e 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -609,7 +609,8 @@ class CyclesObject_PT_ray_visibility(CyclesButtonsPanel, Panel): def poll(cls, context): ob = context.object return (CyclesButtonsPanel.poll(context) and - ob and ob.type in {'MESH', 'CURVE', 'CURVE', 'SURFACE', 'FONT', 'META', 'LAMP'}) + ob and ob.type in {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'LAMP'} or + ob and ob.dupli_type == 'GROUP' and ob.dupli_group) def draw(self, context): layout = self.layout |