Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

mesh.clone() clones mesh.uniqueId

$
0
0

Hi I was using uniqueId to uniquely represent a mesh and I noticed if I use a cloned mesh ( mesh.clone() ) their uniqueId would be the same.

After debugging the code the cloned mesh has a uniqueId after this line:
 

super(name, scene);

But after the line:

Tools.DeepCopy(source, this, ["name", "material", "skeleton", "instances", "parent"], ["_poseMatrix"]);

They now have the same uniqueId

Which can be seen here:
http://babylonjs-playground.azurewebsites.net/#27FBML#0


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>