Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 5,868 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| overlay = view.overlay | overlay = view.overlay | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| display_all = overlay.show_overlays | display_all = overlay.show_overlays | ||||
| statvis = tool_settings.statvis | statvis = tool_settings.statvis | ||||
| col = layout.column() | col = layout.column() | ||||
| col.active = display_all | col.active = display_all | ||||
| col.prop(overlay, "show_occlude_wire") | |||||
| col.prop(overlay, "show_weight", text="Vertex Group Weights") | col.prop(overlay, "show_weight", text="Vertex Group Weights") | ||||
| if overlay.show_weight: | if overlay.show_weight: | ||||
jbakker: Should be inset a bit | |||||
| row = col.split(factor=0.33) | row = col.split(factor=0.33) | ||||
| row.label(text="Zero Weights") | row.label(text="Zero Weights") | ||||
| sub = row.row() | sub = row.row() | ||||
| sub.prop(tool_settings, "vertex_group_user", expand=True) | sub.prop(tool_settings, "vertex_group_user", expand=True) | ||||
| if shading.type == 'WIREFRAME': | if shading.type == 'WIREFRAME': | ||||
| xray = shading.show_xray_wireframe and shading.xray_alpha_wireframe < 1.0 | xray = shading.show_xray_wireframe and shading.xray_alpha_wireframe < 1.0 | ||||
| elif shading.type == 'SOLID': | elif shading.type == 'SOLID': | ||||
| Show All 30 Lines | def draw(self, context): | ||||
| row.prop(statvis, "distort_min", text="Minimum") | row.prop(statvis, "distort_min", text="Minimum") | ||||
| row.prop(statvis, "distort_max", text="Maximum") | row.prop(statvis, "distort_max", text="Maximum") | ||||
| elif statvis_type == 'SHARP': | elif statvis_type == 'SHARP': | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop(statvis, "sharp_min", text="Minimum") | row.prop(statvis, "sharp_min", text="Minimum") | ||||
| row.prop(statvis, "sharp_max", text="Maximum") | row.prop(statvis, "sharp_max", text="Maximum") | ||||
| class VIEW3D_PT_overlay_retopology(Panel): | |||||
| bl_space_type = 'VIEW_3D' | |||||
| bl_region_type = 'HEADER' | |||||
| bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh' | |||||
| bl_label = "" | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| return context.mode == 'EDIT_MESH' | |||||
| def draw_header(self, context): | |||||
| layout = self.layout | |||||
| view = context.space_data | |||||
| overlay = view.overlay | |||||
| layout.prop(overlay, "show_retopology") | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| view = context.space_data | |||||
| overlay = view.overlay | |||||
| if overlay.show_retopology: | |||||
| tool_settings = context.tool_settings | |||||
| display_all = overlay.show_overlays | |||||
| col = layout.column() | |||||
| col.active = display_all | |||||
| row = col.row() | |||||
| row.prop(tool_settings.retopology, "show_faces") | |||||
| row = col.row() | |||||
| row.prop(tool_settings.retopology, "depth_mix_factor", text="Depth Mix") | |||||
| class VIEW3D_PT_overlay_edit_mesh_measurement(Panel): | class VIEW3D_PT_overlay_edit_mesh_measurement(Panel): | ||||
| bl_space_type = 'VIEW_3D' | bl_space_type = 'VIEW_3D' | ||||
| bl_region_type = 'HEADER' | bl_region_type = 'HEADER' | ||||
| bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh' | bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh' | ||||
| bl_label = "Measurement" | bl_label = "Measurement" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ▲ Show 20 Lines • Show All 1,180 Lines • ▼ Show 20 Lines | classes = ( | ||||
| VIEW3D_PT_overlay_geometry, | VIEW3D_PT_overlay_geometry, | ||||
| VIEW3D_PT_overlay_motion_tracking, | VIEW3D_PT_overlay_motion_tracking, | ||||
| VIEW3D_PT_overlay_edit_mesh, | VIEW3D_PT_overlay_edit_mesh, | ||||
| VIEW3D_PT_overlay_edit_mesh_shading, | VIEW3D_PT_overlay_edit_mesh_shading, | ||||
| VIEW3D_PT_overlay_edit_mesh_measurement, | VIEW3D_PT_overlay_edit_mesh_measurement, | ||||
| VIEW3D_PT_overlay_edit_mesh_normals, | VIEW3D_PT_overlay_edit_mesh_normals, | ||||
| VIEW3D_PT_overlay_edit_mesh_freestyle, | VIEW3D_PT_overlay_edit_mesh_freestyle, | ||||
| VIEW3D_PT_overlay_edit_curve, | VIEW3D_PT_overlay_edit_curve, | ||||
| VIEW3D_PT_overlay_retopology, | |||||
| VIEW3D_PT_overlay_texture_paint, | VIEW3D_PT_overlay_texture_paint, | ||||
| VIEW3D_PT_overlay_vertex_paint, | VIEW3D_PT_overlay_vertex_paint, | ||||
| VIEW3D_PT_overlay_weight_paint, | VIEW3D_PT_overlay_weight_paint, | ||||
| VIEW3D_PT_overlay_pose, | VIEW3D_PT_overlay_pose, | ||||
| VIEW3D_PT_overlay_sculpt, | VIEW3D_PT_overlay_sculpt, | ||||
| VIEW3D_PT_snapping, | VIEW3D_PT_snapping, | ||||
| VIEW3D_PT_proportional_edit, | VIEW3D_PT_proportional_edit, | ||||
| VIEW3D_PT_gpencil_origin, | VIEW3D_PT_gpencil_origin, | ||||
| Show All 20 Lines | |||||
Should be inset a bit