diff options
Diffstat (limited to 'source/blender/editors/interface/interface_button_group.c')
-rw-r--r-- | source/blender/editors/interface/interface_button_group.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_button_group.c b/source/blender/editors/interface/interface_button_group.c index 1f544831982..3d82b84399c 100644 --- a/source/blender/editors/interface/interface_button_group.c +++ b/source/blender/editors/interface/interface_button_group.c @@ -87,8 +87,8 @@ void ui_button_group_replace_but_ptr(uiBlock *block, const void *old_but_ptr, ui } } - /* The button should be in a group. */ - BLI_assert(false); + /* The button should be in a group, otherwise there are no button groups at all. */ + BLI_assert(BLI_listbase_is_empty(&block->button_groups)); } /** \} */ |