diff --git a/scripts/pathfinding/Token.js b/scripts/pathfinding/Token.js index 9c3cc47..dc6bf44 100644 --- a/scripts/pathfinding/Token.js +++ b/scripts/pathfinding/Token.js @@ -26,7 +26,7 @@ function createToken(document, _options, _userId) { const res = SCENE_GRAPH._checkInternalConsistency(); if ( !res.allConsistent ) { log(`WallTracer|createToken ${document.id} resulted in inconsistent graph.`, SCENE_GRAPH, res); - SCENE_GRAPH.reset(); + SCENE_GRAPH._reset(); } } @@ -58,7 +58,7 @@ function updateToken(document, changed, options, userId) { const res = SCENE_GRAPH._checkInternalConsistency(); if ( !res.allConsistent ) { log(`WallTracer|updateToken ${document.id} resulted in inconsistent graph.`, SCENE_GRAPH, res); - SCENE_GRAPH.reset(); + SCENE_GRAPH._reset(); } // Restore original token doc values. diff --git a/scripts/pathfinding/Wall.js b/scripts/pathfinding/Wall.js index f89e942..53c06f5 100644 --- a/scripts/pathfinding/Wall.js +++ b/scripts/pathfinding/Wall.js @@ -25,7 +25,7 @@ function createWall(document, _options, _userId) { const res = SCENE_GRAPH._checkInternalConsistency(); if ( !res.allConsistent ) { log(`WallTracer|createWall ${document.id} resulted in inconsistent graph.`, SCENE_GRAPH, res); - SCENE_GRAPH.reset(); + SCENE_GRAPH._reset(); } } @@ -47,7 +47,7 @@ function updateWall(document, changes, _options, _userId) { const res = SCENE_GRAPH._checkInternalConsistency(); if ( !res.allConsistent ) { log(`WallTracer|updateWall ${document.id} resulted in inconsistent graph.`, SCENE_GRAPH, res); - SCENE_GRAPH.reset(); + SCENE_GRAPH._reset(); } } @@ -63,7 +63,7 @@ function deleteWall(document, _options, _userId) { const res = SCENE_GRAPH._checkInternalConsistency(); if ( !res.allConsistent ) { log(`WallTracer|deleteWall ${document.id} resulted in inconsistent graph.`, SCENE_GRAPH, res); - SCENE_GRAPH.reset(); + SCENE_GRAPH._reset(); } }