Blender Git Commit Log
Git Commits -> Revision 92d185f
Revision 92d185f by Dalai Felinto (master) March 7, 2019, 20:28 (GMT) |
Properties Editor: Grease Pencil and pinning fixes The UI was trying to use screen_context.c for its poll and draw functions. So the active object and active object data and active layer was used in the UI, instead of the context one. Besides, for the material, the wrong context path was used altogether when the active object was a greasepencil. This would lead to all sort of pinning problems: * A Mesh panel is pinned, but the active object is a grease pencil, the grease pencil panels would show. * If a Grease Pencil (data) panel is pinned, but the active object is not the one pinned, nothing would show. * Material panels and pinning were totally broken, showing the material context for pinned mesh data panels even. I also sanitized the name of the panels, their inheritance and poll functions. Reviewers: antoniov, brecht Subscribers: billrey Differential Revision: https://developer.blender.org/D4470 |
Commit Details:
Full Hash: 92d185faebeac60ec2591c2a7c0f870e7726593d
Parent Commit: 81a0962
Lines Changed: +165, -211
6 Modified Paths:
/intern/cycles/blender/addon/ui.py (+8, -5) (Diff)
/release/scripts/startup/bl_ui/properties_data_gpencil.py (+53, -75) (Diff)
/release/scripts/startup/bl_ui/properties_grease_pencil_common.py (+38, -33) (Diff)
/release/scripts/startup/bl_ui/properties_material.py (+7, -18) (Diff)
/release/scripts/startup/bl_ui/properties_material_gpencil.py (+53, -70) (Diff)
/source/blender/editors/space_buttons/buttons_context.c (+6, -10) (Diff)
/release/scripts/startup/bl_ui/properties_data_gpencil.py (+53, -75) (Diff)
/release/scripts/startup/bl_ui/properties_grease_pencil_common.py (+38, -33) (Diff)
/release/scripts/startup/bl_ui/properties_material.py (+7, -18) (Diff)
/release/scripts/startup/bl_ui/properties_material_gpencil.py (+53, -70) (Diff)
/source/blender/editors/space_buttons/buttons_context.c (+6, -10) (Diff)