Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_object.py
| Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| has_bounds = (is_geometry or obj_type in {'LATTICE', 'ARMATURE'}) | has_bounds = (is_geometry or obj_type in {'LATTICE', 'ARMATURE'}) | ||||
| is_wire = (obj_type in {'CAMERA', 'EMPTY'}) | is_wire = (obj_type in {'CAMERA', 'EMPTY'}) | ||||
| is_empty_image = (obj_type == 'EMPTY' and obj.empty_display_type == 'IMAGE') | is_empty_image = (obj_type == 'EMPTY' and obj.empty_display_type == 'IMAGE') | ||||
| is_dupli = (obj.instance_type != 'NONE') | is_dupli = (obj.instance_type != 'NONE') | ||||
| is_gpencil = (obj_type == 'GPENCIL') | is_gpencil = (obj_type == 'GPENCIL') | ||||
| col = layout.column(heading="Show") | col = layout.column(heading="Show") | ||||
| col.prop(obj, "show_name", text="Name") | col.prop(obj, "show_name", text="Name") | ||||
| col.prop(obj, "show_axis", text="Axis") | col.prop(obj, "show_axis", text="Axes") | ||||
| # Makes no sense for cameras, armatures, etc.! | # Makes no sense for cameras, armatures, etc.! | ||||
| # but these settings do apply to dupli instances | # but these settings do apply to dupli instances | ||||
| if is_geometry or is_dupli: | if is_geometry or is_dupli: | ||||
| col.prop(obj, "show_wire", text="Wireframe") | col.prop(obj, "show_wire", text="Wireframe") | ||||
| if obj_type == 'MESH' or is_dupli: | if obj_type == 'MESH' or is_dupli: | ||||
| col.prop(obj, "show_all_edges", text="All Edges") | col.prop(obj, "show_all_edges", text="All Edges") | ||||
| if is_geometry: | if is_geometry: | ||||
| ▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines | |||||