Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 5,344 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() | ||||
| Show All 11 Lines | def draw(self, context): | ||||
| if overlay.show_floor or overlay.show_ortho_grid: | if overlay.show_floor or overlay.show_ortho_grid: | ||||
| sub = col.row(align=True) | sub = col.row(align=True) | ||||
| sub.active = ( | sub.active = ( | ||||
| (overlay.show_floor and not view.region_3d.is_orthographic_side_view) or | (overlay.show_floor and not view.region_3d.is_orthographic_side_view) or | ||||
| (overlay.show_ortho_grid and grid_active) | (overlay.show_ortho_grid and grid_active) | ||||
| ) | ) | ||||
| sub.prop(overlay, "grid_scale", text="Scale") | sub.prop(overlay, "grid_scale", text="Scale") | ||||
| sub = sub.row(align=True) | |||||
| sub.active = scene.unit_settings.system == 'NONE' | |||||
| sub.prop(overlay, "grid_subdivisions", text="Subdivisions") | sub.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,330 Lines • Show Last 20 Lines | |||||