Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-11-04 22:21:26 +0300
committerHans Goudey <h.goudey@me.com>2020-11-04 22:21:26 +0300
commit29780b8101eb7fa14a8729ff2cd7b73ef4e84c5a (patch)
tree2f92b2b74c02de4fa866b437353ad8e09b7d12d7 /source/blender/editors/interface/interface_button_group.c
parent568dc2665e81902236a619daf385abcf928fb4fc (diff)
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.
Diffstat (limited to 'source/blender/editors/interface/interface_button_group.c')
-rw-r--r--source/blender/editors/interface/interface_button_group.c3
1 files changed, 0 insertions, 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));
}
/** \} */