Instanced Buffer of source and instance refer to same object

the issue can be reproduced by playground as follows:

  1. create a mesh
  2. register and create instance buffer for the above mesh
  3. create an instance from above mesh
    then you will see the issue

When the instances are created after the custom buffer has been registered on the source mesh, the instances share the same data than the source mesh until you overwrite them. You will see that if you set a specific value for the “custom” attribute of the instance, it will be different from the one of the source mesh.