From ff7151307cc2a38a023fc6f8ddda0978afd3028c Mon Sep 17 00:00:00 2001 From: Michael Enion Date: Mon, 22 Jul 2024 15:49:33 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix|SceneGraph|SCENE=5FGRAPH.res?= =?UTF-8?q?et=20is=20undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change to `SCENE_GRAPH._reset` --- scripts/pathfinding/Token.js | 4 ++-- scripts/pathfinding/Wall.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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(); } }