Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Context not available. | |||||
| # Select Menu | # Select Menu | ||||
| if gp_edit: | if gp_edit: | ||||
| if mode_string not in {'PAINT_GPENCIL', 'WEIGHT_GPENCIL'}: | if mode_string not in {'PAINT_GPENCIL', 'WEIGHT_GPENCIL'}: | ||||
| if ts.gpencil_sculpt.use_select_mask: | if mode_string in {'SCULPT_GPENCIL'} and ts.gpencil_sculpt.use_select_mask: | ||||
antoniov: If you have only one string use instead:
`if mode_string == 'SCULPT_GPENCIL' and ts. | |||||
| layout.menu("VIEW3D_MT_select_gpencil") | |||||
| elif mode_string in {'EDIT_GPENCIL'}: | |||||
antoniovUnsubmitted Not Done Inline ActionsSame as above antoniov: Same as above | |||||
| 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 | ||||
| Context not available. | |||||
If you have only one string use instead:
if mode_string == 'SCULPT_GPENCIL' and ts.gpencil_sculpt.use_select_mask:
The in is used only when you have a list of values.