Fix all remaining unified paint settings uses of current Scene.
authorNicholas Bishop <nicholasbishop@gmail.com>
Sat, 14 Jan 2012 23:54:51 +0000 (23:54 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sat, 14 Jan 2012 23:54:51 +0000 (23:54 +0000)
commit30e759c75ba9625fe46bc6b7710358282a61d4c1
tree872469d64544c09a9155d871d4429f701df6172b
parent046bf80881b4c7ea2fb108b5588070a6ffa14c20
Fix all remaining unified paint settings uses of current Scene.

Things like brush size and strength accessors now take a scene
parameter rather than guessing about which Scene's unified paint
settings to use.

Setting the size/strength through RNA can now be done separately for
the brush or the UnifiedPaintSettings.

The UI python code required updating to check whether the
size/strength controls should use brush or UnifiedPaintSettings RNA.

Radial control also required some updates to switch between the two
RNA sources.
12 files changed:
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/blenkernel/BKE_brush.h
source/blender/blenkernel/intern/brush.c
source/blender/editors/physics/physics_ops.c
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/sculpt_paint/paint_ops.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
source/blender/windowmanager/intern/wm_operators.c