提交 accf07c8 编写于 作者: M Mr.doob

Editor: Listen to window messages (for https://github.com/mrdoob/THREE.InspectorExtension)

上级 46bdbd01
......@@ -310,6 +310,13 @@
}
window.addEventListener( 'message', function ( event ) {
editor.clear();
editor.fromJSON( event.data );
}, false );
</script>
</body>
</html>
......@@ -443,10 +443,7 @@ Editor.prototype = {
if ( json.scene === undefined ) {
var scene = loader.parse( json );
this.setScene( scene );
this.setScene( loader.parse( json ) );
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册