Explorar el Código

Editor: Load shadows/vr from app.json.

Mr.doob hace 9 años
padre
commit
5fbcd08a0d
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      editor/js/Editor.js

+ 3 - 0
editor/js/Editor.js

@@ -447,6 +447,9 @@ Editor.prototype = {
 
 		// TODO: Clean this up somehow
 
+		this.config.setKey( 'project/renderer/shadows', json.project.shadows );
+		this.config.setKey( 'project/vr', json.project.vr );
+
 		var camera = loader.parse( json.camera );
 
 		this.camera.position.copy( camera.position );