From 29780b8101eb7fa14a8729ff2cd7b73ef4e84c5a Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 4 Nov 2020 13:21:26 -0600 Subject: [PATCH] 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. --- source/blender/editors/interface/interface_button_group.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/blender/editors/interface/interface_button_group.c b/source/blender/editors/interface/interface_button_group.c index 3d82b84399c..2d2da9a4d14 100644 --- a/source/blender/editors/interface/interface_button_group.c +++ b/source/blender/editors/interface/interface_button_group.c @@ -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)); } /** \} */