Fix T78455: Failed assert when opening a viewport panel

Mistake from 1fa40c9f8a.
This commit is contained in:
2020-06-30 10:47:49 +02:00
parent 55ae55af66
commit 4176adaf96

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);