Fix some RNA/scene issuess with unified paint settings.
authorNicholas Bishop <nicholasbishop@gmail.com>
Thu, 12 Jan 2012 21:48:08 +0000 (21:48 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Thu, 12 Jan 2012 21:48:08 +0000 (21:48 +0000)
commitb2ae44dc41f7cf09bf20081734bf098d0f7cdb78
treea201d5b2345374a4aa50a69dc3c4f4c98c522d2f
parent1b8eab0fab7b6c4755e10366c43f7f1a7097f661
Fix some RNA/scene issuess with unified paint settings.

Added RNA for the unified paint setting flags that matches the Brush
RNA. Fixed the getter/setter functions to avoid guessing which Scene's
UnifiedPaintSetting to use. The getter functions take a Scene pointer
now, the setter functions are removed in favor of a more explicit
approach through RNA:

Rather than RNA choosing whether a property's value is in the Brush or
in the UnifiedPaintSettings, there are now explicit properties for
both. The UI code has been modified accordingly to switch the toggle
buttons between affecting the Brush and the UnifiedPaintSettings.
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/blenkernel/BKE_brush.h
source/blender/blenkernel/intern/brush.c
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/sculpt_paint/paint_stroke.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/makesrna/intern/rna_brush.c
source/blender/makesrna/intern/rna_scene.c