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>2014-12-02 01:30:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2014-12-02 01:39:06 +0300
commit0efa41e996aaf1f489e6f8f5395de04d98664834 (patch)
treed9045eed2a8c4a4d8a89b5d63b49358e99c5eaa3 /source/blender/editors/interface/interface.c
parent44df4242fa5845803ba5786dd867cf4261b09421 (diff)
Fix rare crash dragging number-buttons
Could happen dragging shape-keys UIList & the lower slider at once.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 93f5a8e58d6..92017e7a967 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -723,6 +723,10 @@ static bool ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBu
ui_but_update_linklines(block, oldbut, but);
+ if (!BLI_listbase_is_empty(&block->butstore)) {
+ UI_butstore_register_update(block, oldbut, but);
+ }
+
/* move/copy string from the new button to the old */
/* needed for alt+mouse wheel over enums */
if (but->str != but->strdata) {