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:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user