Skip to content

Commit

Permalink
updated enterAR function to remove groundGrid when entering AR
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Ali committed Jan 17, 2018
1 parent ac8c6f6 commit 6574945
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions public/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/js/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ export default class App extends AppBase {
} else {
this.HUD.foundSurface();
}
this.S3DScene.remove(this.groundGrid);
this.scene.add(this.modelScene);
this.setAR(true);
});
Expand All @@ -297,7 +298,6 @@ export default class App extends AppBase {
this.HUD.dismissToasts(this.duration);
this.reticle.fadeOut(this.duration, 0, () => {
this.setAR(false);
this.S3DScene.remove(this.groundGrid);
this.background.fadeIn(this.duration, 0, () => {
if (this.arView.marcher) {
this.arView.controls.enabled = false;
Expand Down

0 comments on commit 6574945

Please sign in to comment.