Skip to content

Commit 593c52f

Browse files
committed
This property was missing an isPlaying check
1 parent d9edda3 commit 593c52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MRTK/Core/Providers/BaseSpatialMeshObserver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public SpatialAwarenessMeshLevelOfDetail LevelOfDetail
239239
get { return levelOfDetail; }
240240
set
241241
{
242-
if (value != SpatialAwarenessMeshLevelOfDetail.Custom)
242+
if (Application.isPlaying && value != SpatialAwarenessMeshLevelOfDetail.Custom)
243243
{
244244
TrianglesPerCubicMeter = LookupTriangleDensity(value);
245245
}

0 commit comments

Comments
 (0)