[Bf-blender-cvs] [3c4b7e7a5a1] soc-2017-sculpting_brush: Topograb: Dynamic array implementation testing

Raja Kediamiyagix noreply at git.blender.org
Tue Jul 25 13:03:51 CEST 2017


Commit: 3c4b7e7a5a14ef9de13afafb7c52c0b4576df71c
Author: Raja Kedia(miyagix)
Date:   Tue Jul 25 16:32:51 2017 +0530
Branches: soc-2017-sculpting_brush
https://developer.blender.org/rB3c4b7e7a5a14ef9de13afafb7c52c0b4576df71c

Topograb: Dynamic array implementation testing

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

M	source/blender/editors/sculpt_paint/sculpt.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index e143aefae90..89507698262 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3403,8 +3403,6 @@ int check_topo_connected(int vert, int *vert_array, int totvert){
 int ver[VERLEN] = { 0 };
 uint ver_b[VERLEN] = { 0 };
 int c_ver[VERLEN] = { 0 };
-float c_cor[VERLEN][3] = { 0 };
-float cor[VERLEN][3] = { 0 };
 int cn[6] = { 0 };
 float d[3] = { 0.0f };
 BMVert *vx;
@@ -4031,7 +4029,7 @@ static void do_brush_action_task_cb(void *userdata, const int n)
 	BKE_pbvh_node_mark_update(data->nodes[n]);
 }
 
-int *arrx = NULL;
+//int *arrx = NULL;
 static void do_brush_action(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSettings *ups)
 {
 	SculptSession *ss = ob->sculpt;
@@ -4073,6 +4071,7 @@ static void do_brush_action(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSe
 			//print_vd(ss->cache->central_v);
 			//printf(" * \n");
 			
+			int *arrx = NULL;
 			BLI_array_declare(arrx);
 			int i;
 			for (i = 0; i < 10;i++){
@@ -4086,7 +4085,7 @@ static void do_brush_action(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSe
 				printf("%d ", arrx[i]);
 			}
 			printf("] ");
-
+			//MEM_freeN(arrx);
 			BLI_array_free(arrx);
 			printf(" * \n");
 		}




More information about the Bf-blender-cvs mailing list