Fix T104095: missing crazy space data while sculpting curves
`remember_deformed_curve_positions_if_necessary` has to be called before topology changing operations on curves. Otherwise the crazy-space data is invalid.
This commit is contained in:
@@ -192,6 +192,10 @@ static void node_geo_exec(GeoNodeExecParams params)
|
||||
const AnonymousAttributePropagationInfo &propagation_info = params.get_output_propagation_info(
|
||||
"Geometry");
|
||||
|
||||
for (GeometrySet &geometry : geometry_sets) {
|
||||
GeometryComponentEditData::remember_deformed_curve_positions_if_necessary(geometry);
|
||||
}
|
||||
|
||||
GeometrySet geometry_set_result;
|
||||
join_component_type<MeshComponent>(geometry_sets, geometry_set_result, propagation_info);
|
||||
join_component_type<PointCloudComponent>(geometry_sets, geometry_set_result, propagation_info);
|
||||
|
||||
@@ -34,6 +34,7 @@ static void node_geo_exec(GeoNodeExecParams params)
|
||||
}
|
||||
|
||||
GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry");
|
||||
GeometryComponentEditData::remember_deformed_curve_positions_if_necessary(geometry_set);
|
||||
geometry::RealizeInstancesOptions options;
|
||||
options.keep_original_ids = legacy_behavior;
|
||||
options.realize_instance_attributes = !legacy_behavior;
|
||||
|
||||
Reference in New Issue
Block a user