Merge branch 'master' into sculpt-dev

This commit is contained in:
Pablo Dobarro 2021-01-01 17:18:40 +01:00
commit 5136cc701f
1 changed files with 5 additions and 0 deletions

View File

@ -278,6 +278,11 @@ static void geo_node_point_distribute_exec(GeoNodeExecParams params)
const MeshComponent &mesh_component = *geometry_set.get_component_for_read<MeshComponent>();
const Mesh *mesh_in = mesh_component.get_for_read();
if (mesh_in == nullptr || mesh_in->mpoly == nullptr) {
params.set_output("Geometry", std::move(geometry_set_out));
return;
}
const FloatReadAttribute density_factors = mesh_component.attribute_get_for_read<float>(
density_attribute, ATTR_DOMAIN_POINT, 1.0f);
const int seed = params.get_input<int>("Seed");