diff options
author | Hans Goudey <h.goudey@me.com> | 2020-09-25 19:51:13 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-25 19:51:13 +0300 |
commit | d951239e1d9a903219a1d40d3704ea5696c452e5 (patch) | |
tree | ef0c290682d0216004d16eb123a0e08ccd5b4b5a /source | |
parent | e2fe405910d9e83ada64078bca59685e85419c3b (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |