Skip to content

Commit 0cbea35

Browse files
author
David Kline
authored
Merge pull request #3419 from keveleigh/fix-spatial-cleanup
Update Spatial Awareness system cleanup
2 parents 1056032 + a9b4cc6 commit 0cbea35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/MixedRealityToolkit.Providers/WindowsMixedReality/WindowsMixedRealitySpatialMeshObserver.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ private void CleanupObserver()
304304
if (Application.isPlaying)
305305
{
306306
// Cleanup the scene objects are managing
307-
if (ObservedObjectParent != null)
307+
if (observedObjectParent != null)
308308
{
309-
ObservedObjectParent.transform.DetachChildren();
309+
observedObjectParent.transform.DetachChildren();
310310
}
311+
311312
foreach (SpatialAwarenessMeshObject meshObject in meshes.Values)
312313
{
313314
if (meshObject != null)

0 commit comments

Comments
 (0)