Blender Git Commit Log

Git Commits -> Revision 49f3949

October 4, 2017, 11:52 (GMT)
Various fixes to get GP Palettes UI working

* Switched the UI to using the "active_gpencil_palette" (and palette color) context
vars (in favor of the "active_palette"/color) ones for retrieving the active
palette. For some unknown reason, context.active_object returns null when
trying to use it in the Properties Editor when drawing UI layouts, but it works
perfectly fine when operators calling operator.poll() or running operators.

* Sanitise many of the hacks added to the Palette operators to make them usable
for Grease Pencil-linked palettes (e.g. remove special hacky args)

* Add RNA support for getting the active GP palette slot

Commit Details:

Full Hash: 49f394946ee2290c228ba5b8234280a2637abde5
Parent Commit: 0f83cba
Lines Changed: +80, -37

6 Modified Paths:

/release/scripts/startup/bl_ui/properties_material_gpencil.py (+9, -9) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+3, -0) (Diff)
/source/blender/editors/screen/screen_context.c (+12, -7) (Diff)
/source/blender/editors/sculpt_paint/paint_ops.c (+25, -21) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+30, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021