Cleanup: Sculpt: Remove no-op addition of proxy

Adding the proxy doesn't do anything because the translations
are zeroed by default.
This commit is contained in:
Hans Goudey
2024-07-09 23:27:09 -04:00
parent 830f9cb95b
commit d0a5599da3
2 changed files with 0 additions and 7 deletions

View File

@@ -4038,8 +4038,6 @@ static void sculpt_combine_proxies(const Sculpt &sd, Object &ob)
} // namespace blender::ed::sculpt_paint
/**
* Copy the modified vertices from the #PBVH to the active key.
*/

View File

@@ -342,11 +342,6 @@ static void do_topology_relax_task(Object &ob, const Brush &brush, PBVHNode *nod
SculptOrigVertData orig_data = SCULPT_orig_vert_data_init(ob, *node, undo::Type::Position);
/* TODO(@sergey): This looks very suspicious: proxy is added but is never written.
* Either this needs to be documented better why it is needed, or removed. The removal is likely
* to lead to performance improvements as well. */
BKE_pbvh_node_add_proxy(*ss.pbvh, *node);
SculptBrushTest test;
SculptBrushTestFn sculpt_brush_test_sq_fn = SCULPT_brush_test_init_with_falloff_shape(
ss, test, brush.falloff_shape);