mikedh / trimesh

Python library for loading and using triangular meshes.

Home Page:https://trimesh.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

RealDanTheMan opened this issue · comments

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.

colors[~np.isfinite(colors)] = 0.0

Proposed fix: #2233