Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 4,710 Lines • ▼ Show 20 Lines | class VIEW3D_PT_overlay_guides(Panel): | ||||
| bl_region_type = 'HEADER' | bl_region_type = 'HEADER' | ||||
| bl_parent_id = 'VIEW3D_PT_overlay' | bl_parent_id = 'VIEW3D_PT_overlay' | ||||
| bl_label = "Guides" | bl_label = "Guides" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| view = context.space_data | view = context.space_data | ||||
| scene = context.scene | |||||
| overlay = view.overlay | overlay = view.overlay | ||||
| shading = view.shading | shading = view.shading | ||||
| display_all = overlay.show_overlays | display_all = overlay.show_overlays | ||||
| col = layout.column() | col = layout.column() | ||||
| col.active = display_all | col.active = display_all | ||||
| split = col.split() | split = col.split() | ||||
| sub = split.column() | sub = split.column() | ||||
| sub.prop(overlay, "show_floor", text="Grid") | sub.prop(overlay, "show_floor", text="Grid") | ||||
| if overlay.show_floor: | if overlay.show_floor: | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.active = bool(overlay.show_floor or view.region_quadviews or not view.region_3d.is_perspective) | sub.active = bool(overlay.show_floor or view.region_quadviews or not view.region_3d.is_perspective) | ||||
| subsub = sub.row(align=True) | subsub = sub.row(align=True) | ||||
| subsub.active = overlay.show_floor | subsub.active = overlay.show_floor | ||||
| subsub.prop(overlay, "grid_scale", text="Scale") | subsub.prop(overlay, "grid_scale", text="Scale") | ||||
| subsub = subsub.row(align=True) | |||||
| subsub.active = scene.unit_settings.system == 'NONE' | |||||
| subsub.prop(overlay, "grid_subdivisions", text="Subdivisions") | subsub.prop(overlay, "grid_subdivisions", text="Subdivisions") | ||||
| sub = split.column() | sub = split.column() | ||||
| row = sub.row() | row = sub.row() | ||||
| row.label(text="Axes") | row.label(text="Axes") | ||||
| subrow = row.row(align=True) | subrow = row.row(align=True) | ||||
| subrow.prop(overlay, "show_axis_x", text="X", toggle=True) | subrow.prop(overlay, "show_axis_x", text="X", toggle=True) | ||||
| ▲ Show 20 Lines • Show All 1,141 Lines • Show Last 20 Lines | |||||