Jump to content

ImportMesh not unblocking when complete


JCPalmer
 Share

Recommended Posts

In my testing of FileLoader logging, I wanted to make sure the messages worked for ImportMesh too.  They did, but scene.executeWhenReady() is never run.

My test had 2 appends & an executeWhenReady block which worked as desired:

BABYLON.SceneLoader.loggingLevel = BABYLON.SceneLoader.DETAILED_LOGGING;
BABYLON.SceneLoader.Append(url, "armature-no-anim.babylon", scene);
BABYLON.SceneLoader.Append(url, "skeleton_library.babylon", scene);
scene.executeWhenReady(function () {
   console.log("i am ready");
}

I substituted an ImportMesh(null, for the first Append(.  The logging worked, but never got to the "i am ready" message.  I see the 2 scene._removePendingData calls in ImportMesh.  Maybe a finally block with just one call would be better.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...