[Bf-blender-cvs] [219dba8506f] master: Workaround T83651: Crash dragging multiple buttons in the clip editor

Campbell Barton noreply at git.blender.org
Fri Dec 11 05:33:01 CET 2020


Commit: 219dba8506ffca7b5cc4ba0a849f9c3a9394334e
Author: Campbell Barton
Date:   Fri Dec 11 15:30:30 2020 +1100
Branches: master
https://developer.blender.org/rB219dba8506ffca7b5cc4ba0a849f9c3a9394334e

Workaround T83651: Crash dragging multiple buttons in the clip editor

Avoid the crash, dragging multiple buttons still needs fixing.

===================================================================

M	source/blender/editors/interface/interface_handlers.c

===================================================================

diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index f914ccd7497..bcb79743b12 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -1349,6 +1349,9 @@ static void ui_multibut_states_apply(bContext *C, uiHandleButtonData *data, uiBl
     if (mbut_state == NULL) {
       /* Highly unlikely. */
       printf("%s: Can't find button\n", __func__);
+      /* While this avoids crashing, multi-button dragging will fail,
+       * which is still a bug from the user perspective. See T83651. */
+      continue;
     }
 
     void *active_back;



More information about the Bf-blender-cvs mailing list