Blender Git Loki

Git Commits -> Revision f25541b

September 25, 2017, 12:15 (GMT)
Fix: If the active object is not a GP object, starting to draw
with D-LMB would create a new GP object

This was behaviour was bad if you were trying to use GPencil for
anything other than 2D-3D art (e.g. for creating freehand input
for addons/Pose Sketching, annotating your work in EditMode, etc.)
as you could easily end up with all your annotations/sketches in heaps
of separate GP objects.

This commit improves the sitation slightly, by introducing an
"GPencil Object" property to Scene (similar to the existing "Active Camera"
and "Active Clip" settings).
* The idea is that the first GP object added to the scene as the "default
GPencil Object".
* Everytime you start sketching with GPencil AND the active object isn't
a GPencil Object, this "default GPencil Object" will become the active object,
and any strokes you draw will be added to this object (instead of a new
GP object being created)

TODO:
* Investigate if we can do this without losing whatever mode the user was
in previously. This new workflow makes GPencil a lot less useful for a
bunch of different annotation/addon workflows it could be used for in 2.7

Commit Details:

Full Hash: f25541be38c131f623c4f12c4357d7813863997a
Parent Commit: 04f2553
Lines Changed: +66, -15

7 Modified Paths:

/release/scripts/startup/bl_ui/properties_scene.py (+1, -0) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+1, -0) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+44, -9) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+7, -6) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+7, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021