Fix #138790: Crash applying empty geometry node modifier on point cloud

Copying the point cloud is basically free in the scheme of things.
Better to do that than check if the output point cloud is the same.
This commit is contained in:
Hans Goudey
2025-05-12 23:25:21 -04:00
parent b6b43339ef
commit 9edd645638

View File

@@ -1203,7 +1203,7 @@ static bool modifier_apply_obdata(ReportList *reports,
}
bke::GeometrySet geometry_set = bke::GeometrySet::from_pointcloud(
&points, bke::GeometryOwnershipType::ReadOnly);
BKE_pointcloud_copy_for_eval(&points));
ModifierEvalContext mectx = {depsgraph, ob, MOD_APPLY_TO_ORIGINAL};
mti->modify_geometry_set(md_eval, &mectx, &geometry_set);