Skip to content

Commit

Permalink
minor changes to exitAR method
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Ali committed Jan 19, 2018
1 parent 6574945 commit d69dcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ export default class App extends AppBase {
this.modelShadow.material.opacity = 0.25;
this.tweenOutModel();
this.modelTween.onComplete(() => {
this.scene.remove(this.modelScene);
this.resetS3DCamera();
this.S3DControls.enabled = true;
this.HUD.dismissToasts(this.duration);
Expand All @@ -311,7 +312,6 @@ export default class App extends AppBase {
this.model.position.set(0, 0, 0);
this.model.rotation.set(0, 0, 0);
this.model.updateMatrixWorld(true);
this.scene.remove(this.modelScene);

if (this.IsFullscreen()) {
this.disableFullscreen();
Expand Down

0 comments on commit d69dcaa

Please sign in to comment.