[Bf-blender-cvs] [d951239e1d9] master: Fix T81161: Bad properties context panel placement loading old files
Hans Goudey
noreply at git.blender.org
Fri Sep 25 18:51:44 CEST 2020
Commit: d951239e1d9a903219a1d40d3704ea5696c452e5
Author: Hans Goudey
Date: Fri Sep 25 11:51:13 2020 -0500
Branches: master
https://developer.blender.org/rBd951239e1d9a903219a1d40d3704ea5696c452e5
Fix T81161: Bad properties context panel placement loading old files
These breadcrumbs used to be a panel in 2.79 and 2.80 development.
If a file was saved in those versions, and the panels rearranged in a
version that didn't have this panel, its sortorder would be changed
even though it wasn't visible or even used in that version.
A simple fix is to use a new ID name for the new version of this
panel in 2.91. "Buttons" is an old name anyway.
===================================================================
M source/blender/editors/space_buttons/buttons_context.c
===================================================================
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index 565adb89b99..410197da5da 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -1162,7 +1162,7 @@ static void buttons_panel_context_draw(const bContext *C, Panel *panel)
void buttons_context_register(ARegionType *art)
{
PanelType *pt = MEM_callocN(sizeof(PanelType), "spacetype buttons panel context");
- strcpy(pt->idname, "BUTTONS_PT_context");
+ strcpy(pt->idname, "PROPERTIES_PT_context");
strcpy(pt->label, N_("Context")); /* XXX C panels unavailable through RNA bpy.types! */
strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
pt->poll = buttons_panel_context_poll;
More information about the Bf-blender-cvs
mailing list