Changeset View
Changeset View
Standalone View
Standalone View
space_view3d_brush_menus/stroke_menu.py
| Context not available. | |||||
| layout.row().separator() | layout.row().separator() | ||||
| if brush: | if brush: | ||||
| # add the menu items dynamicaly based on values in enum property | # add the menu items dynamically based on values in enum property | ||||
| for tool in brush.bl_rna.properties['stroke_method'].enum_items: | for tool in brush.bl_rna.properties['stroke_method'].enum_items: | ||||
| if tool.identifier in ('ANCHORED', 'DRAG_DOT') and \ | if tool.identifier in ('ANCHORED', 'DRAG_DOT') and \ | ||||
| utils_core.get_mode() in ('VERTEX_PAINT', | utils_core.get_mode() in ('VERTEX_PAINT', | ||||
| Context not available. | |||||