Blender Git Commit Log

Git Commits -> Revision 910220b

Revision 910220b by Nicholas Bishop (master)
May 12, 2011, 01:57 (GMT)
== Radial control ==

Patch to make the radial control more generic with RNA. Patch was
reviewed here: http://codereview.appspot.com/4280080/

Prior to this update, the radial control code in trunk had generic
parts of the radial control implemented as an incomplete operator
within WM. Then each different user of the radial control had to
implement a separate operator to actually pass in specific brush data
-- e.g. sculpt's brush size, vpaint's brush size, etc.

This patch removes all the extra operators and makes the WM operator
do everything. It now takes several RNA path strings as its properties
-- the only required property is data_path, which specifies the data
to be modified by the radial control. The other paths affect display
in various ways, e.g. rotation, color, etc.

In addition to decreasing some duplicate paint brush code, these
updates make it pretty easy to enable radial control for other
purposes (and it can be set up entirely though python or keymaps, no
extra C code needed.)

Commit Details:

Full Hash: 910220be47729d6effffb7aa33bfe05d4caa5d3d
SVN Revision: 36628
Parent Commit: 040f65f
Lines Changed: +487, -613

16 Modified Paths:

/source/blender/blenkernel/BKE_brush.h (+1, -2) (Diff)
/source/blender/blenkernel/intern/brush.c (+1, -52) (Diff)
/source/blender/editors/physics/particle_edit.c (+0, -74) (Diff)
/source/blender/editors/physics/physics_intern.h (+0, -1) (Diff)
/source/blender/editors/physics/physics_ops.c (+9, -3) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+0, -89) (Diff)
/source/blender/editors/sculpt_paint/paint_intern.h (+0, -4) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+60, -19) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+0, -104) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+0, -60) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+0, -6) (Diff)
/source/blender/makesrna/intern/rna_sculpt_paint.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_space.c (+27, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+386, -191) (Diff)
/source/blender/windowmanager/WM_api.h (+0, -6) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021