forked from blender/blender
davidhaver-WIP-realize-depth #3
@ -614,13 +614,13 @@ bool GeometrySet::attribute_foreach(const Span<GeometryComponent::Type> componen
|
|||||||
if (reference.type() == InstanceReference::Type::GeometrySet) {
|
if (reference.type() == InstanceReference::Type::GeometrySet) {
|
||||||
bke::GeometrySet instance_geometry_set = reference.geometry_set();
|
bke::GeometrySet instance_geometry_set = reference.geometry_set();
|
||||||
if (current_depth != depth_target_tmp) {
|
if (current_depth != depth_target_tmp) {
|
||||||
is_child_has_component = is_child_has_component ||
|
is_child_has_component = instance_geometry_set.attribute_foreach(component_types,
|
||||||
instance_geometry_set.attribute_foreach(component_types,
|
|
||||||
current_depth + 1,
|
current_depth + 1,
|
||||||
depth_target_tmp,
|
depth_target_tmp,
|
||||||
instance_depth,
|
instance_depth,
|
||||||
selection,
|
selection,
|
||||||
callback);
|
callback) ||
|
||||||
|
is_child_has_component;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -332,7 +332,7 @@ static void realize_collections(Collection *collection, bke::Instances *instance
|
|||||||
float4x4 transform = float4x4::identity();
|
float4x4 transform = float4x4::identity();
|
||||||
transform.location() -= float3(collection->instance_offset);
|
transform.location() -= float3(collection->instance_offset);
|
||||||
transform *= child_object->object_to_world();
|
transform *= child_object->object_to_world();
|
||||||
instances->add_instance(handle, transform);instances->add_instance(handle, transform);
|
instances->add_instance(handle, transform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user