[Bf-blender-cvs] [fd10080] temp_widgets_c++_experiment: Fix crashes when changing screen layout

Julian Eisel noreply at git.blender.org
Tue Dec 22 16:27:35 CET 2015


Commit: fd10080dea34677390437952120acaae70a9d51e
Author: Julian Eisel
Date:   Tue Dec 22 16:27:05 2015 +0100
Branches: temp_widgets_c++_experiment
https://developer.blender.org/rBfd10080dea34677390437952120acaae70a9d51e

Fix crashes when changing screen layout

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

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

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

diff --git a/source/blender/windowmanager/intern/widgets/wm_widgetgrouptype.cc b/source/blender/windowmanager/intern/widgets/wm_widgetgrouptype.cc
index e61ae80..a795c4d 100644
--- a/source/blender/windowmanager/intern/widgets/wm_widgetgrouptype.cc
+++ b/source/blender/windowmanager/intern/widgets/wm_widgetgrouptype.cc
@@ -95,6 +95,7 @@ wmWidgetGroupType::wmWidgetGroupType(
 							wmWidgetGroup *wgroup = new wmWidgetGroup;
 
 							wgroup->type = this;
+							wgroup->widgets = ListBase_NULL;
 
 							/* just add here, drawing will occur on next update */
 							BLI_addtail(&wmap->widgetgroups, wgroup);
diff --git a/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc b/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc
index 7c0d663..f82f08c 100644
--- a/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc
+++ b/source/blender/windowmanager/intern/widgets/wm_widgetmap.cc
@@ -75,6 +75,7 @@ wmWidgetMap::wmWidgetMap(const char *idname, const int spaceid, const int region
 	{
 		wmWidgetGroup *wgroup = new wmWidgetGroup;
 		wgroup->type = wgrouptype;
+		wgroup->widgets = ListBase_NULL;
 		BLI_addtail(&widgetgroups, wgroup);
 	}
 }




More information about the Bf-blender-cvs mailing list