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