Просмотр исходного кода

Merge pull request #16157 from Temdog007/editor/SceneClear

Editor: Clear name and user data of scene
Mr.doob 6 лет назад
Родитель
Сommit
afb92873dd
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.camera.copy( this.DEFAULT_CAMERA );
+		this.scene.name = "Scene";
+		this.scene.userData = {};
 		this.scene.background.setHex( 0xaaaaaa );
 		this.scene.fog = null;
 

粤ICP备19079148号