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:
authorCampbell Barton <ideasman42@gmail.com>2021-01-28 08:23:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-28 08:23:01 +0300
commitc1c77b7b9aabf5736b3a18895ed0c81518ad2d79 (patch)
treedc05c9ad42abc634ce2696134fd627e4ff5d28a1 /source/blender/editors/interface
parent862aa2a66bba922fbc4a24cc8a43a16e290e64cf (diff)
parent10e093b30d17149008a10df3f52d39744577f17b (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index af8c6255656..574a3eac4b3 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -988,6 +988,11 @@ bool UI_but_active_only(const bContext *C, ARegion *region, uiBlock *block, uiBu
*/
bool UI_block_active_only_flagged_buttons(const bContext *C, ARegion *region, uiBlock *block)
{
+
+ /* Running this command before end-block has run, means buttons that open menus
+ * wont have those menus correctly positioned, see T83539. */
+ BLI_assert(block->endblock != 0);
+
bool done = false;
LISTBASE_FOREACH (uiBut *, but, &block->buttons) {
if (but->flag & UI_BUT_ACTIVATE_ON_INIT) {