mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
GUI now supports the new json format
The picking code seems to be buggy... will investigate.
This commit is contained in:
+1
-8
@@ -133,13 +133,8 @@
|
||||
|
||||
case 'js':
|
||||
|
||||
var blob = new BlobBuilder();
|
||||
blob.append( contents );
|
||||
|
||||
var url = URL.createObjectURL( blob.getBlob() );
|
||||
|
||||
var loader = new THREE.JSONLoader();
|
||||
loader.load( url, function ( geometry ) {
|
||||
loader.createModel( JSON.parse( contents ), function ( geometry ) {
|
||||
|
||||
geometry.gui = {
|
||||
paremeters: {
|
||||
@@ -168,8 +163,6 @@
|
||||
var loader = new THREE.ColladaLoader();
|
||||
loader.parse( xml, function ( collada ) {
|
||||
|
||||
// console.log( collada );
|
||||
|
||||
signals.added.dispatch( collada.scene );
|
||||
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user