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 ba03a46 commit b2e46e5Copy full SHA for b2e46e5
Assets/HoloToolkit/Common/Scripts/WorldAnchorManager.cs
@@ -324,7 +324,7 @@ public void RemoveAllAnchors()
324
for (var i = 0; i < anchors.Length; i++)
325
{
326
// Don't remove SpatialMapping anchors if exists
327
- if (spatialMappingManager != null && anchors[i].gameObject.transform.parent.gameObject == spatialMappingManager.gameObject)
+ if (spatialMappingManager != null && anchors[i].gameObject.transform.parent != null && anchors[i].gameObject.transform.parent.gameObject == spatialMappingManager.gameObject)
328
{ continue; }
329
330
// Let's check to see if there are anchors we weren't accounting for.
0 commit comments