Skip to content

Commit f6d5b72

Browse files
committed
GUI now supports the new json format
The picking code seems to be buggy... will investigate.
1 parent 1d82924 commit f6d5b72

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

gui/index.html

+1-8
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,8 @@
133133

134134
case 'js':
135135

136-
var blob = new BlobBuilder();
137-
blob.append( contents );
138-
139-
var url = URL.createObjectURL( blob.getBlob() );
140-
141136
var loader = new THREE.JSONLoader();
142-
loader.load( url, function ( geometry ) {
137+
loader.createModel( JSON.parse( contents ), function ( geometry ) {
143138

144139
geometry.gui = {
145140
paremeters: {
@@ -168,8 +163,6 @@
168163
var loader = new THREE.ColladaLoader();
169164
loader.parse( xml, function ( collada ) {
170165

171-
// console.log( collada );
172-
173166
signals.added.dispatch( collada.scene );
174167

175168
} );

0 commit comments

Comments
 (0)