Kesshi Posted October 27, 2015 Share Posted October 27, 2015 Loading an obj file with BABYLON.SceneLoader.ImportMesh() always returns an emtpy mesh array in the onSuccess callback. This happens since this commit:https://github.com/BabylonJS/Babylon.js/commit/a2799b0ae443235c7403bbd02d6aa2713ee1c723 Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 27, 2015 Share Posted October 27, 2015 Yep, this line looks wrong:https://github.com/BabylonJS/Babylon.js/blob/master/loaders/OBJ/babylon.objFileLoader.ts#L221should be:meshes = meshes.concat(loadedMeshes);Let me check and get back to you. I assume the meshes are shown, but the array is empty, right? Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 27, 2015 Share Posted October 27, 2015 Fixed. https://github.com/BabylonJS/Babylon.js/pull/783 Quote Link to comment Share on other sites More sharing options...
Kesshi Posted October 27, 2015 Author Share Posted October 27, 2015 I assume the meshes are shown, but the array is empty, right? Correct Thx for the fast fix. Quote Link to comment Share on other sites More sharing options...
aemaething Posted February 24, 2017 Share Posted February 24, 2017 On 27.10.2015 at 7:21 PM, Kesshi said: Correct Thx for the fast fix. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.