Remove incorrect assert in button group code

Even after the last commit to fix this assert, it still fails in the
case where a button was added before there was a button group
added to the block. Another fix for this would be to always create
a button group in UI_block_begin, but this assert has no particular
purpose, so it's simpler to just remove it.
This commit is contained in:
Hans Goudey 2020-11-04 13:21:26 -06:00
parent 568dc2665e
commit 29780b8101
Notes: blender-bot 2023-02-13 22:37:44 +01:00
Referenced by issue #82768, 2.92 Pen Pressure not detected.
Referenced by issue #82446, startup crash with 2.91 windows
Referenced by issue #82415, Crash on remote machine
1 changed files with 0 additions and 3 deletions

View File

@ -86,9 +86,6 @@ void ui_button_group_replace_but_ptr(uiBlock *block, const void *old_but_ptr, ui
}
}
}
/* The button should be in a group, otherwise there are no button groups at all. */
BLI_assert(BLI_listbase_is_empty(&block->button_groups));
}
/** \} */