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