TriangleMesh's operator "+=" gets rid of UV coordinates when no texture is attached to the mesh.
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
masterbranch).
My Question
Hello,
I noticed that the += operator overload for the TriangleMesh class does not append UV coordinates in the case of a mesh that has UVs but no texture attached to it. I guess this is determined by this boolean here. I think it would be more intuitive if UVs were also copied over when appending meshes together, regardless of if they have a texture attached or not.
Is there any particular reason for the current behavior ? If not I could make a small PR to modify this.
thanks in advance and thanks for the great lib 👍
Thank you for reporting the issue. We would welcome a PR to change this behavior. I see no reason to limit += for UVs to the TriangleMeshes with textures already assigned to them.