Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Vazquez <venomgfx@gmail.com>2014-05-02 02:14:10 +0400
committerPablo Vazquez <venomgfx@gmail.com>2014-05-02 02:14:10 +0400
commit4e7780a34a91287743d70bc57644649a686a5a26 (patch)
treec05e7896519abe78a1481cb435c7799324860199 /intern/cycles
parent5f80a7ffe25fdda77904d06c8e7b6ff37731d25b (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.py3
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