Fix: Crash on instance on points node with empty mesh

This commit is contained in:
Hans Goudey 2022-08-04 09:15:08 -05:00
parent d2a30abff0
commit 0844781961
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ static void add_instances_from_component(
evaluator.evaluate();
const IndexMask selection = evaluator.get_evaluated_selection_as_mask();
if (selection.is_empty()) {
return;
}
/* The initial size of the component might be non-zero when this function is called for multiple
* component types. */