Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 6,740 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if snap_elements != {'INCREMENT'}: | if snap_elements != {'INCREMENT'}: | ||||
| col.label(text="Snap With") | col.label(text="Snap With") | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop(tool_settings, "snap_target", expand=True) | row.prop(tool_settings, "snap_target", expand=True) | ||||
| col.prop(tool_settings, "use_snap_backface_culling") | col.prop(tool_settings, "use_snap_backface_culling") | ||||
| if obj: | if obj: | ||||
| if object_mode == 'EDIT': | if object_mode == 'EDIT' and obj.type not in {'LATTICE', 'META', 'FONT'}: | ||||
| col.prop(tool_settings, "use_snap_self") | sub = col.column() | ||||
| sub.active = not (tool_settings.use_proportional_edit and obj.type == 'MESH') | |||||
| sub.prop(tool_settings, "use_snap_self") | |||||
| if object_mode in {'OBJECT', 'POSE', 'EDIT', 'WEIGHT_PAINT'}: | if object_mode in {'OBJECT', 'POSE', 'EDIT', 'WEIGHT_PAINT'}: | ||||
mano-wii: `'GPENCIL'` does not have the `'EDIT'` mode. It only has the `'EDIT_GPENCIL'` mode.
I don't… | |||||
| col.prop(tool_settings, "use_snap_align_rotation") | col.prop(tool_settings, "use_snap_align_rotation") | ||||
| if 'FACE' in snap_elements: | if 'FACE' in snap_elements: | ||||
| col.prop(tool_settings, "use_snap_project") | col.prop(tool_settings, "use_snap_project") | ||||
Done Inline ActionsTransform applies to 'WEIGHT_PAINT' when you have the rig and mesh selected. mano-wii: Transform applies to `'WEIGHT_PAINT'` when you have the rig and mesh selected. | |||||
| if 'VOLUME' in snap_elements: | if 'VOLUME' in snap_elements: | ||||
| col.prop(tool_settings, "use_snap_peel_object") | col.prop(tool_settings, "use_snap_peel_object") | ||||
| col.label(text="Affect") | col.label(text="Affect") | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop(tool_settings, "use_snap_translate", text="Move", toggle=True) | row.prop(tool_settings, "use_snap_translate", text="Move", toggle=True) | ||||
| row.prop(tool_settings, "use_snap_rotate", text="Rotate", toggle=True) | row.prop(tool_settings, "use_snap_rotate", text="Rotate", toggle=True) | ||||
| ▲ Show 20 Lines • Show All 1,088 Lines • Show Last 20 Lines | |||||
'GPENCIL' does not have the 'EDIT' mode. It only has the 'EDIT_GPENCIL' mode.
I don't know why it's different from the others but it doesn't need to be here.