diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-02-27 01:40:07 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-02-27 01:51:13 +0300 |
commit | ce104ca89643c4b0e6358fd22a2b056ecd603e62 (patch) | |
tree | 933f0e3f097c0bb3db4df855739e15f385159413 /source/blender/makesdna/DNA_ipo_types.h | |
parent | 1beada2c62dfc36fb0250dfbbc85c1745ae7325b (diff) |
Fix: Grease Pencil data panels not working with pinning
Note: Things were working fine if you were to pin the Grease Pencil
object, but not if you were pinning the GP data.
In too many poll functions context.object was being requested when
a simple context.gpencil_data would suffit.
Panels that are still not showing in pinning:
* DATA_PT_gpencil_display.
The panel needs to be split in sub-panels, leaving all object-dependent
properties in its own panel so we can poll it away, while showing the
rest.
* * *
This commit doesn't handle greasepencil material. In this case I
recommend we do as properties_material.py and have a generous poll(),
followed by different drawing logics whether or not we have an object.
Diffstat (limited to 'source/blender/makesdna/DNA_ipo_types.h')
0 files changed, 0 insertions, 0 deletions