|
@@ -608,7 +608,7 @@ THREE.GLTFExporter = function () {};
|
|
THREE.GLTFExporter.prototype = {
|
|
THREE.GLTFExporter.prototype = {
|
|
|
|
|
|
constructor: THREE.GLTFExporter,
|
|
constructor: THREE.GLTFExporter,
|
|
- parse: function ( input ) {
|
|
|
|
|
|
+ parse: function ( input, onDone ) {
|
|
|
|
|
|
var outputJSON = {
|
|
var outputJSON = {
|
|
/*
|
|
/*
|
|
@@ -939,10 +939,7 @@ THREE.GLTFExporter.prototype = {
|
|
base64data = reader.result;
|
|
base64data = reader.result;
|
|
outputJSON.buffers[0].uri = base64data;
|
|
outputJSON.buffers[0].uri = base64data;
|
|
console.log(JSON.stringify(outputJSON, null, 2));
|
|
console.log(JSON.stringify(outputJSON, null, 2));
|
|
|
|
+ onDone(outputJSON);
|
|
}
|
|
}
|
|
-
|
|
|
|
- return outputJSON;
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
};
|
|
};
|