Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja Kedia(miyagix) <rajakedia2222@gmail.com>2017-07-25 14:02:51 +0300
committerRaja Kedia(miyagix) <rajakedia2222@gmail.com>2017-07-25 14:02:51 +0300
commit3c4b7e7a5a14ef9de13afafb7c52c0b4576df71c (patch)
tree499cbd9ee003a3cd7aff84608a0b520418e46abe
parent1b960b02c07ca60b69167603e945e45630aadc7f (diff)
Topograb: Dynamic array implementation testing
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c7
1 files changed, 3 insertions, 4 deletions
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");
}