Browse Source

Clear name and user data of scene

Temdog007 6 years ago
parent
commit
3b462e9802
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/js/Editor.js

+ 2 - 0
editor/js/Editor.js

@@ -498,6 +498,8 @@ Editor.prototype = {
 		this.storage.clear();
 		this.storage.clear();
 
 
 		this.camera.copy( this.DEFAULT_CAMERA );
 		this.camera.copy( this.DEFAULT_CAMERA );
+		this.scene.name = "Scene";
+		this.scene.userData = {};
 		this.scene.background.setHex( 0xaaaaaa );
 		this.scene.background.setHex( 0xaaaaaa );
 		this.scene.fog = null;
 		this.scene.fog = null;