Fix curves sculpting in deformed space when using Subdivide node

Needs a call to remember_deformed_curve_positions_if_necessary, missed
in rB1f94b56d7744.

Thx @JacquesLucke for the solution!

Differential Revision: https://developer.blender.org/D16078
This commit is contained in:
Philipp Oeser 2022-09-27 11:51:47 +02:00
parent 4a60c4746d
commit 30113e54d2
Notes: blender-bot 2023-02-14 02:45:41 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
Referenced by issue #101823, Curves sculptmode: sculpting in deformed space breaks when using Duplicate Elements node (followed by Set Position)
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ static void node_geo_exec(GeoNodeExecParams params)
GeometrySet geometry_set = params.extract_input<GeometrySet>("Curve");
Field<int> cuts_field = params.extract_input<Field<int>>("Cuts");
GeometryComponentEditData::remember_deformed_curve_positions_if_necessary(geometry_set);
geometry_set.modify_geometry_sets([&](GeometrySet &geometry_set) {
if (!geometry_set.has_curves()) {
return;