Jump to content

side effect of createInstance on a clone


danj
 Share

Recommended Posts

I've got a mesh as an avatar and clone it twice to get red and blue avatar "prototypes".

Then I call createInstance on on the red-avatar the new mesh is ok and visible.

Afterwards I call createInstance on the blue-avatar (ok), but this has the side-effect that the first instance disappears.

It seems that the first time when createInstance is called on a prototype it somehow impacts the other clones. It did work on 2.3.0.

 

http://www.babylonjs-playground.com/#1VVRMK#2

 

BTW: Excelent framework, I love it !!!

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...