Fix T78455: Failed assert when opening a viewport panel

Mistake from 1fa40c9f8a.
This commit is contained in:
Julian Eisel 2020-06-30 10:47:49 +02:00
parent 55ae55af66
commit 4176adaf96
Notes: blender-bot 2023-11-20 12:14:32 +01:00
Referenced by issue #78455, Failed assert in ui_paneltype_draw_impl while opening a viewport panel
1 changed files with 1 additions and 1 deletions

View File

@ -5576,7 +5576,7 @@ static void ui_paneltype_draw_impl(bContext *C, PanelType *pt, uiLayout *layout,
panel->layout = layout;
pt->draw(C, panel);
panel->layout = NULL;
BLI_assert(panel->runtime.custom_data_ptr = NULL);
BLI_assert(panel->runtime.custom_data_ptr == NULL);
MEM_freeN(panel);