[Bf-blender-cvs] [157a80e] temp_widgets_c++_experiment: Fix another startup crash

Julian Eisel noreply at git.blender.org
Sun Dec 20 20:49:35 CET 2015


Commit: 157a80e6b1b0a64d6a31c3cf8fac18e3d88ae5cf
Author: Julian Eisel
Date:   Sun Dec 20 20:44:46 2015 +0100
Branches: temp_widgets_c++_experiment
https://developer.blender.org/rB157a80e6b1b0a64d6a31c3cf8fac18e3d88ae5cf

Fix another startup crash

Although Blender still doesn't startup correctly, technically the remaining crash(es?) aren't during startup but when Blender starts updating widgets for drawing. This is to be expected and will resolve during the C->C++ transmission.

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

M	source/blender/windowmanager/intern/widgets/wm_widgetmap.cc

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

diff --git a/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc b/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc
index 7eb12d5..0c5ae8a 100644
--- a/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc
+++ b/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc
@@ -57,6 +57,7 @@ wmWidgetMap::wmWidgetMap(const char *idname, const int spaceid, const int region
 	wmWidgetMapType *wmaptype = WM_widgetmaptype_find(idname, spaceid, regionid, is_3d, true);
 
 	type = wmaptype;
+	widgetgroups.first = widgetgroups.last = NULL;
 
 	/* create all widgetgroups for this widgetmap. We may create an empty one
 	 * too in anticipation of widgets from operators etc */




More information about the Bf-blender-cvs mailing list