Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 1,225 Lines • ▼ Show 20 Lines | class CYCLES_OBJECT_PT_visibility(CyclesButtonsPanel, Panel): | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return CyclesButtonsPanel.poll(context) and (context.object) | return CyclesButtonsPanel.poll(context) and (context.object) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| ob = context.object | ob = context.object | ||||
| cob = ob.cycles | |||||
| layout.prop(cob, "lpe_tag") | |||||
| layout.prop(ob, "hide_select", text="Selectable", invert_checkbox=True, toggle=False) | layout.prop(ob, "hide_select", text="Selectable", invert_checkbox=True, toggle=False) | ||||
| col = layout.column(heading="Show In") | col = layout.column(heading="Show In") | ||||
| col.prop(ob, "hide_viewport", text="Viewports", invert_checkbox=True, toggle=False) | col.prop(ob, "hide_viewport", text="Viewports", invert_checkbox=True, toggle=False) | ||||
| col.prop(ob, "hide_render", text="Renders", invert_checkbox=True, toggle=False) | col.prop(ob, "hide_render", text="Renders", invert_checkbox=True, toggle=False) | ||||
| if has_geometry_visibility(ob): | if has_geometry_visibility(ob): | ||||
| col = layout.column(heading="Mask") | col = layout.column(heading="Mask") | ||||
| ▲ Show 20 Lines • Show All 1,159 Lines • Show Last 20 Lines | |||||