Sculpt: disable slow code

How silly of me.  I had left on
some debug code I wrote for edge collapse.
This particular debug code generated a .obj
format string of the local mesh around an edge
before collapsing edges.

What amazes me is that the performance regression
was only about as bad as the original edge collapse
implementation in DynTopo.
This commit is contained in:
Joseph Eagar 2021-10-20 17:27:34 -07:00
parent c563169e32
commit 243e9be588
2 changed files with 3 additions and 3 deletions

View File

@ -2512,7 +2512,7 @@ static void trigger_jvke_error(int err, char *obj_text)
printf("========= ERROR %s============\n\n%s\n\n", get_err_str(err), obj_text);
}
#if 0
#if JVKE_DEBUG
# define JVKE_CHECK_ELEMENT(elem) \
{ \
int err = 0; \
@ -2529,9 +2529,11 @@ BMVert *bmesh_kernel_join_vert_kill_edge(
{
BMVert *v_conn = BM_edge_other_vert(e, v_kill);
#ifdef JVKE_DEBUG
char buf[LOCAL_OBJ_SIZE];
char *saved_obj = bm_save_local_obj_text(bm, 2, buf, "e", e);
bm_local_obj_free(saved_obj, buf);
#endif
BMFace **fs = NULL;
BMEdge **deles = NULL;

View File

@ -1536,8 +1536,6 @@ void SCULPT_smooth(Sculpt *sd,
}
}
nodes = nodes ? MEM_dupallocN(nodes) : NULL;
#ifdef PROXY_ADVANCED
int datamask = PV_CO | PV_NEIGHBORS | PV_NO | PV_INDEX | PV_MASK;
BKE_pbvh_ensure_proxyarrays(ss, ss->pbvh, nodes, totnode, datamask);