[Bf-committers] farsthary-branch small commit

Raul Fernandez Hernandez raulf at info.upr.edu.cu
Wed Jun 2 21:54:25 CEST 2010


 properly free the editmesh resources on each creation (should be better
memory wise now)
  and also applied the fix that Letterrip do regarding extending the
sculpt flag from short to int.

 Index: source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- source/blender/editors/sculpt_paint/sculpt.c	(revision 29142)
+++ source/blender/editors/sculpt_paint/sculpt.c	(working copy)
@@ -599,9 +599,11 @@

 			/* Clear selection */
 			for(eed = me->edit_mesh->edges.first; eed; eed = eed->next)
				EM_select_edge(eed, 0);

 			load_editMesh(ss->scene, ob);
+
+			free_editMesh(me->edit_mesh);
 			DAG_id_flush_update(ob->data, OB_RECALC_DATA); //?
 		}

Index: source/blender/makesdna/DNA_brush_types.h
===================================================================
--- source/blender/makesdna/DNA_brush_types.h	(revision 29142)
+++ source/blender/makesdna/DNA_brush_types.h	(working copy)
@@ -54,8 +54,9 @@
 	struct CurveMapping *curve;	/* falloff curve */
 	struct MTex mtex;

-	short flag, blend;			/* general purpose flag, blend mode */
-	int size;					/* brush diameter */
+	short blend, pad;				/* blend mode */
+	int size;				/* brush diameter */
+	int flag, pad3;				/* general purpose flag */
 	float detail;				/* dynamic subdivission detail */
 	float smoothness;			/* dynamic subdivission smoothness*/
 	float jitter;				/* jitter the position of the brush */




More information about the Bf-committers mailing list