Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 6,380 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop(overlay, "show_vertex_normals", text="", icon='NORMALS_VERTEX') | row.prop(overlay, "show_vertex_normals", text="", icon='NORMALS_VERTEX') | ||||
| row.prop(overlay, "show_split_normals", text="", icon='NORMALS_VERTEX_FACE') | row.prop(overlay, "show_split_normals", text="", icon='NORMALS_VERTEX_FACE') | ||||
| row.prop(overlay, "show_face_normals", text="", icon='NORMALS_FACE') | row.prop(overlay, "show_face_normals", text="", icon='NORMALS_FACE') | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.active = overlay.show_vertex_normals or overlay.show_face_normals or overlay.show_split_normals | sub.active = overlay.show_vertex_normals or overlay.show_face_normals or overlay.show_split_normals | ||||
| if overlay.use_normals_constant_screen_size: | |||||
| sub.prop(overlay, "normals_constant_screen_size", text="Size") | |||||
| else: | |||||
| sub.prop(overlay, "normals_length", text="Size") | sub.prop(overlay, "normals_length", text="Size") | ||||
| row.prop(overlay, "use_normals_constant_screen_size", text="", icon='FIXED_SIZE') | |||||
| class VIEW3D_PT_overlay_edit_mesh_freestyle(Panel): | class VIEW3D_PT_overlay_edit_mesh_freestyle(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' | bl_parent_id = 'VIEW3D_PT_overlay' | ||||
| bl_label = "Freestyle" | bl_label = "Freestyle" | ||||
| @classmethod | @classmethod | ||||
| ▲ Show 20 Lines • Show All 1,310 Lines • Show Last 20 Lines | |||||