We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a75b29e commit 9b01943Copy full SHA for 9b01943
1 file changed
crates/re_space_view_spatial/src/heuristics.rs
@@ -28,6 +28,8 @@ pub fn auto_spawn_heuristic(
28
.space_view_class_registry
29
.get_system_registry_or_log_error(class)
30
.new_part_collection();
31
+
32
+ // Gather all systems that advertise a "preferred view kind" matching the passed in kind.
33
let system_names_with_matching_view_kind = parts
34
.iter_with_names()
35
.filter_map(|(name, part)| {
@@ -38,6 +40,8 @@ pub fn auto_spawn_heuristic(
38
40
})
39
41
.collect::<Vec<_>>();
42
43
+ // For each of the system with the matching "preferred view kind", count the entities involved.
44
+ // We tally this up for scoring.
45
for system_name in system_names_with_matching_view_kind {
46
if per_system_entities
47
.get(&system_name)
0 commit comments