Blender Git Loki
Git Commits -> Revision ec19c7d
Revision ec19c7d by Nicholas Bishop (master) July 26, 2010, 04:00 (GMT) |
== Sculpt == Fixed brush icons loading slowly * Changed brush icon property from an enum to a flag that toggles whether a custom file is used for the brush icon * Changed get_brush_icon to only handle loading external icons, built-ins are handled through the regular icon system * Modified preview icon drawing to allow built-in icons * When not using a custom icon, a default icon is selected based on the current tool TODO: * Allowing preview to show built-in icons makes the brush texture selector look ugly when nothing is selected. As discussed on IRC though, the nothing-selected state needs to be clarified anyway; I'll address this in another commit * Use image browser when selecting a custom icon * Selecting the default icon is ugly (uses the active object's mode), this can be fixed by making brushes know which paint mode they are part of |
Commit Details:
Full Hash: ec19c7dffca92119c964dc18ef3af6efd1d8c0c9
SVN Revision: 30738
Parent Commit: 6561da0
Lines Changed: +151, -210
7 Modified Paths:
/release/scripts/ui/space_view3d_toolbar.py (+4, -6) (Diff)
/source/blender/editors/interface/interface_icons.c (+45, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -5) (Diff)
/source/blender/editors/render/render_preview.c (+4, -82) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+1, -37) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+94, -78) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+45, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -5) (Diff)
/source/blender/editors/render/render_preview.c (+4, -82) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+1, -37) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+94, -78) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+2, -0) (Diff)