Blender Git Commit Log

Git Commits -> Revision fe4d0c2

Revision fe4d0c2 by Joshua Leung (master)
December 7, 2014, 13:42 (GMT)
Bugfix T42774: BSurface addon doesn't work on new builds

It turns out that several important modelling addons depend on the assumption
that Grease Pencil data gets created on the active object instead of on scene
level. This commit adds a toggle for setting whether new Grease Pencil data
is created on scene or object level.

These work as follows:
* "Scene" = The behaviour originally introduced as part of the GPencil_EditStrokes
changes. New strokes are added to the scene instead of the active object, making
it easier to manage things when working with Grease Pencil in general.
* "Object" = The previous behaviour (from 2.50 to 2.72), where new strokes are added
to the active object. This is now being reintroduced to soften the transition
for addons out there which have been doing this in a lazy/lax way so far.


Now, what may be slightly confusing are the "fallback" measures in place:
* "Scene" - To ensure that loading old files goes ok without needing a version patch,
if the active object has GPencil data, that will be used in place of the scene's
own GPencil data.
* "Object" - If there was no active object at the time of creating strokes
(for instance, if you delete the active object immediately before drawing),
GPencil data gets attached to the current scene instead.

Since some tweaks may still be needed here, I've decided to bump the subversion
number so that we have a reference point when doing version patches.

Commit Details:

Full Hash: fe4d0c234eddd984b653c6530f26426871380504
Parent Commit: e67fd7a
Lines Changed: +75, -27

5 Modified Paths:

/release/scripts/startup/bl_ui/properties_grease_pencil_common.py (+14, -2) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+36, -22) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+9, -2) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+15, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021