Blender Git Loki

Git Commits -> Revision 333feea

Revision 333feea by Antonis Ryakiotakis (master)
August 31, 2015, 19:00 (GMT)
Fix T45258, impossible to select brush when removing it from 2d
painting.

Also system added a brush every time it found no paint brush in the
system which is not what we would want.

Solution:
* Brush panel stays visible always, regardless of whether there is a
brush or not.
* We search for first available brush when we find no brush in paint
struct instead of always generating a new one.
* Generating and searching for a brush take a mode argument now. Needed
some refactoring to users of BKE_paint_init as well.
* Did some style cleanups for paint mode enums.

Patch is big but it's mostly argument refactoring.

Commit Details:

Full Hash: 333feea6e9450379f5314f327cf1ac1aef6d8a07
Parent Commit: 0018483
Lines Changed: +167, -89

21 Modified Paths:

/release/scripts/startup/bl_ui/space_image.py (+6, -1) (Diff)
/source/blender/blenkernel/BKE_brush.h (+2, -1) (Diff)
/source/blender/blenkernel/BKE_paint.h (+10, -8) (Diff)
/source/blender/blenkernel/intern/brush.c (+13, -1) (Diff)
/source/blender/blenkernel/intern/paint.c (+75, -21) (Diff)
/source/blender/blenloader/intern/versioning_defaults.c (+1, -1) (Diff)
/source/blender/editors/include/ED_image.h (+2, -2) (Diff)
/source/blender/editors/object/object_edit.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_cursor.c (+4, -4) (Diff)
/source/blender/editors/sculpt_paint/paint_curve.c (+9, -9) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+8, -7) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+5, -5) (Diff)
/source/blender/editors/sculpt_paint/paint_stroke.c (+8, -8) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+3, -3) (Diff)
/source/blender/editors/sculpt_paint/sculpt_uv.c (+3, -2) (Diff)
/source/blender/editors/util/ed_util.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+5, -3) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021