Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | def draw_menus(layout, context): | ||||
| # Select Menu | # Select Menu | ||||
| if gp_edit: | if gp_edit: | ||||
| layout.menu("VIEW3D_MT_select_gpencil") | layout.menu("VIEW3D_MT_select_gpencil") | ||||
| elif mode_string in {'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'}: | elif mode_string in {'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'}: | ||||
| mesh = obj.data | mesh = obj.data | ||||
| if mesh.use_paint_mask: | if mesh.use_paint_mask: | ||||
| layout.menu("VIEW3D_MT_select_paint_mask") | layout.menu("VIEW3D_MT_select_paint_mask") | ||||
| elif mesh.use_paint_mask_vertex and mode_string == 'PAINT_WEIGHT': | elif mesh.use_paint_mask_vertex and mode_string in {'PAINT_WEIGHT', 'PAINT_VERTEX'}: | ||||
mont29: Rather this I’d say? ;)
elif mesh.use_paint_mask_vertex and mode_string in {'PAINT_WEIGHT'… | |||||
| layout.menu("VIEW3D_MT_select_paint_mask_vertex") | layout.menu("VIEW3D_MT_select_paint_mask_vertex") | ||||
| elif mode_string != 'SCULPT': | elif mode_string != 'SCULPT': | ||||
| layout.menu("VIEW3D_MT_select_%s" % mode_string.lower()) | layout.menu("VIEW3D_MT_select_%s" % mode_string.lower()) | ||||
| if gp_edit: | if gp_edit: | ||||
| pass | pass | ||||
| elif mode_string == 'OBJECT': | elif mode_string == 'OBJECT': | ||||
| layout.menu("INFO_MT_add", text="Add") | layout.menu("INFO_MT_add", text="Add") | ||||
| ▲ Show 20 Lines • Show All 1,593 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.operator("ed.undo") | layout.operator("ed.undo") | ||||
| layout.operator("ed.redo") | layout.operator("ed.redo") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("paint.vertex_color_set") | layout.operator("paint.vertex_color_set") | ||||
| layout.operator("paint.vertex_color_smooth") | layout.operator("paint.vertex_color_smooth") | ||||
| layout.operator("paint.vertex_color_dirt") | layout.operator("paint.vertex_color_dirt") | ||||
| layout.operator("paint.weight_to_vertex_convert") | |||||
| layout.separator() | layout.separator() | ||||
| layout.operator("paint.vertex_color_invert", text="Invert") | layout.operator("paint.vertex_color_invert", text="Invert") | ||||
| layout.operator("paint.vertex_color_levels", text="Levels") | layout.operator("paint.vertex_color_levels", text="Levels") | ||||
| layout.operator("paint.vertex_color_hsv", text="Hue Saturation Value") | layout.operator("paint.vertex_color_hsv", text="Hue Saturation Value") | ||||
| layout.operator("paint.vertex_color_brightness_contrast", text="Bright/Contrast") | layout.operator("paint.vertex_color_brightness_contrast", text="Bright/Contrast") | ||||
| ▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| props.use_reverse_transfer = True | props.use_reverse_transfer = True | ||||
| props.data_type = 'VGROUP_WEIGHTS' | props.data_type = 'VGROUP_WEIGHTS' | ||||
| layout.operator("object.vertex_group_limit_total", text="Limit Total") | layout.operator("object.vertex_group_limit_total", text="Limit Total") | ||||
| layout.operator("object.vertex_group_fix", text="Fix Deforms") | layout.operator("object.vertex_group_fix", text="Fix Deforms") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("paint.weight_set") | layout.operator("paint.weight_set") | ||||
| layout.operator("paint.weight_to_vertex_convert") | |||||
| # ********** Sculpt menu ********** | # ********** Sculpt menu ********** | ||||
| class VIEW3D_MT_sculpt(Menu): | class VIEW3D_MT_sculpt(Menu): | ||||
| bl_label = "Sculpt" | bl_label = "Sculpt" | ||||
| ▲ Show 20 Lines • Show All 2,066 Lines • Show Last 20 Lines | |||||
Rather this I’d say? ;)
elif mesh.use_paint_mask_vertex and mode_string in {'PAINT_WEIGHT', 'PAINT_VERTEX'}: