We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58ab46 commit c7d1e8aCopy full SHA for c7d1e8a
src/nodes/spatial/zone.rs
@@ -80,6 +80,11 @@ impl Zone {
80
81
let current_zoneables = Registry::new();
82
for zoneable in ZONEABLE_REGISTRY.get_valid_contents() {
83
+ // Skip if the zoneable is an ancestor of the zone or the zone itself
84
+ if zoneable.is_ancestor_of(self.spatial.clone()) {
85
+ continue;
86
+ }
87
+
88
let distance = self.field.distance(&zoneable, [0.0; 3].into());
89
if distance > 0.0 {
90
continue;
0 commit comments