Blender Git Loki

Git Commits -> Revision 792badc

Revision 792badc by Julian Eisel (master)
November 23, 2021, 17:34 (GMT)
Fix broken handling of constraints reordering with library overrides

Alternative to D13291 (description partially copied from there).

New drag & drop reordering code would call constraints reordering
operator with the generic context, and not the one from the panel's
layout. missing the "constraint" member which is mandatory for poll
function to properly deal with override vs. local constraints.

For this to work in a decent way, there needs to be some panel-wide
context that we can restore when executing callbacks outside of the
normal draw context. So similar to uiLayoutSetContextPointer() to set
context on a layout level, this introduces
UI_panel_context_pointer_set() for panel level context (this calls the
former for the current panel root layout as well).

Differential Revision: https://developer.blender.org/D13308

Commit Details:

Full Hash: 792badcfefcb92aadc16346f0dc11299a8da0ced
Parent Commit: fb4851f
Lines Changed: +31, -8

8 Modified Paths:

/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_panel.c (+15, -0) (Diff)
/source/blender/editors/interface/interface_templates.c (+6, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c (+0, -2) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+3, -0) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+2, -2) (Diff)
/source/blender/shader_fx/intern/FX_ui_common.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021