trimesh icon indicating copy to clipboard operation
trimesh copied to clipboard

Keep vertex attributes when copying `TextureVisuals`.

Open eliphatfs opened this issue 1 year ago • 1 comments

When I load a GLTF files with multiple objects with vertex colors, the color attribute will be dropped at Scene.dump() due to its calling TriMesh.copy which calls visual.copy that does not copy the attributes.

I propose to deep-copy the vertex attributes like the mesh geometry data in TextureVisuals.copy.

eliphatfs avatar Feb 14 '24 05:02 eliphatfs

This sounds good to me! Looks like the tests are failing, happy to merge once those pass.

mikedh avatar Feb 26 '24 18:02 mikedh