[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35845] trunk/blender/source/blender/ editors/space_view3d/view3d_buttons.c: Bugfix, irc report:

Ton Roosendaal ton at blender.org
Mon Mar 28 14:16:21 CEST 2011


Revision: 35845
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35845
Author:   ton
Date:     2011-03-28 12:16:20 +0000 (Mon, 28 Mar 2011)
Log Message:
-----------
Bugfix, irc report:

Entering editmode crashed, missing v3d properties storage, which got
accidentally removed.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c	2011-03-28 11:21:39 UTC (rev 35844)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c	2011-03-28 12:16:20 UTC (rev 35845)
@@ -137,7 +137,7 @@
 {
 	uiBlock *block= (layout)? uiLayoutAbsoluteBlock(layout): NULL;
 	MDeformVert *dvert=NULL;
-	TransformProperties *tfp= v3d->properties_storage;
+	TransformProperties *tfp;
 	float median[6], ve_median[6];
 	int tot, totw, totweight, totedge, totradius;
 	char defstr[320];
@@ -146,6 +146,11 @@
 	tot= totw= totweight= totedge= totradius= 0;
 	defstr[0]= 0;
 
+	/* make sure we got storage */
+	if(v3d->properties_storage==NULL)
+		v3d->properties_storage= MEM_callocN(sizeof(TransformProperties), "TransformProperties");
+	tfp= v3d->properties_storage;
+	
 	if(ob->type==OB_MESH) {
 		Mesh *me= ob->data;
 		EditMesh *em = BKE_mesh_get_editmesh(me);




More information about the Bf-blender-cvs mailing list