Blender Git Commit Log

Git Commits -> Revision 80b1620

Revision 80b1620 by Joshua Leung (GPencil_Editing_Stage3)
December 5, 2015, 14:46 (GMT)
GPencil: Moved Stroke Placement settings from GP datablock to tool settings

This commit moves the Stroke Placement settings from being a per-datablock
setting to being stored in tool settings instead. The main reason this was
done was to resolve a usability issue with the old way: in order to set this
setting, you had to first create a GP datablock to be able to see the settings!

Now, by having these as tool settings (as they should have been from the start),
they can be always visible (even when there isn't a datablock yet), meaning that
it will work as expected from the very first stroke.


Implementation Notes:
* There are separate Stroke Placement properties for the different editor types.
e.g. 3D View, Sequencer Preview, Image Editor, and all other 2D Views

* I couldn't get the version patching code working (to port over placement settings
from the GP datablock attached to the active scene), as this was causing crashes
and other general weirdness when loading old files. The code to do this is there,
but #if 0'ed out.

Commit Details:

Full Hash: 80b1620cf33991a4c307f77357209ae6139196bf
Parent Commit: 397f78f
Lines Changed: +142, -37

9 Modified Paths:

/release/scripts/startup/bl_ui/properties_grease_pencil_common.py (+23, -10) (Diff)
/source/blender/blenkernel/intern/scene.c (+6, -0) (Diff)
/source/blender/blenloader/intern/versioning_270.c (+28, -0) (Diff)
/source/blender/blenloader/intern/versioning_defaults.c (+5, -0) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+13, -4) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+20, -1) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+0, -19) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+45, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021