浏览代码

Clear name and user data of scene

Temdog007 6 年之前
父节点
当前提交
3b462e9802
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;