Skip to content

Commit

Permalink
🐛 fix|SceneGraph|SCENE_GRAPH.reset is undefined
Browse files Browse the repository at this point in the history
Change to `SCENE_GRAPH._reset`
  • Loading branch information
caewok committed Jul 22, 2024
1 parent 55bfaf8 commit ff71513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/pathfinding/Token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions scripts/pathfinding/Wall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand All @@ -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();
}
}

Expand All @@ -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();
}
}

Expand Down

0 comments on commit ff71513

Please sign in to comment.