|
@@ -210,7 +210,7 @@ var BABYLON;
|
|
|
//The complete path to the mtl file
|
|
|
var pathOfFile = BABYLON.Tools.BaseUrl + rootUrl + url;
|
|
|
// Loads through the babylon tools to allow fileInput search.
|
|
|
- BABYLON.Tools.LoadFile(pathOfFile, onSuccess, null, null, false, function () { console.warn("Error - Unable to load " + pathOfFile); });
|
|
|
+ BABYLON.Tools.LoadFile(pathOfFile, onSuccess, null, null, false, function () { console.warn("Error - Unable to load " + pathOfFile); }, true /* synchronous call */);
|
|
|
};
|
|
|
OBJFileLoader.prototype.importMesh = function (meshesNames, scene, data, rootUrl, meshes, particleSystems, skeletons) {
|
|
|
//get the meshes from OBJ file
|