Particles: use CD_PROP_FLOAT3 instead of CD_LOCATION

`CD_LOCATION` was only used temporarily due to the lack
of a better alternative. This also removes the name from
`CD_LOCATION` again, because at most one layer of this
type should exist.
This commit is contained in:
2020-07-15 16:48:30 +02:00
parent 57ec1f37e9
commit 19d17b217a
4 changed files with 9 additions and 9 deletions

View File

@@ -125,7 +125,7 @@ static PointCloud *modifyPointCloud(ModifierData *md,
}
const float3 *positions = (const float3 *)CustomData_get_layer_named(
&state->attributes, CD_LOCATION, "Position");
&state->attributes, CD_PROP_FLOAT3, "Position");
memcpy(pointcloud->co, positions, sizeof(float3) * state->tot_particles);
for (int i = 0; i < state->tot_particles; i++) {