Actually, there’s a bug in instantiateModelsToScene
, that’s why you get these warnings => you can see that the original tree is not instantiated correctly, some foliages are missing in the instances.
@RaananW It seems this PR does not handle the case where the instanced mesh is not at the root level but is a child of another mesh. Try this PG for eg:
The instance has the ground as the source mesh, instead of the sphere.
If using an empty mesh for the parent of the instance, you get the warnings @852Kerfunkle is experiencing:
And if you use a transform node as the parent, the sourceMesh
property of the instance is pointing to the original sphere, not the cloned sphere: