mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
3.02k stars 583 forks source link

Converting GLTF vertex color to RGBA on load attempts to modify non-writable buffer #2234

Closed RealDanTheMan closed 5 months ago

RealDanTheMan commented 6 months ago

When loading GLTF(glb) containing floating point vertex color data, further down the line when visual data is assigned the call to_rgba() attempts to modify non writable color array.

https://github.com/mikedh/trimesh/blob/7853a5ebae3b35275f4d8d65cbc48bcd3a3c8a40/trimesh/visual/color.py#L583

RealDanTheMan commented 6 months ago

Proposed fix: #2233