Blender Git Loki
Git Commits -> Revision a90bcdf
Revision a90bcdf by Campbell Barton (master) November 6, 2018, 01:39 (GMT) |
Tool System: use tool type enum to access brushes Previously the brush names were used which had the limit that: - Brush names that were deleted wouldn't show up in the toolbar. - Naming collisions between user defined brushes and existing tools broke tool selection. Now brushes are created as needed when tools are selected. Note, vertex/weight paint combine tool and blend modes, this should be split out into a separate enum. |
Commit Details:
Full Hash: a90bcdf93d82bf5d9964b12bb20af696ca66654e
Parent Commit: 29dfe9a
Lines Changed: +125, -138
8 Modified Paths:
/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py (+22, -121) (Diff)
/source/blender/blenkernel/BKE_paint.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+50, -0) (Diff)
/source/blender/blenkernel/intern/paint_toolslots.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_workspace_api.c (+13, -6) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_toolsystem.c (+18, -8) (Diff)
/source/blender/blenkernel/BKE_paint.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+50, -0) (Diff)
/source/blender/blenkernel/intern/paint_toolslots.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_workspace_api.c (+13, -6) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_toolsystem.c (+18, -8) (Diff)