[Bf-blender-cvs] [4e7780a] master: Cycles UI: Show the Ray Visibility panel for objects with dupli_group on, no reason to hide it.

Pablo Vazquez noreply at git.blender.org
Fri May 2 00:15:13 CEST 2014


Commit: 4e7780a34a91287743d70bc57644649a686a5a26
Author: Pablo Vazquez
Date:   Thu May 1 19:14:10 2014 -0300
https://developer.blender.org/rB4e7780a34a91287743d70bc57644649a686a5a26

Cycles UI:
Show the Ray Visibility panel for objects with dupli_group on, no reason to hide it.

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

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

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

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 4cdc721..f35cb1a 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




More information about the Bf-blender-cvs mailing list