Skip to content
Snippets Groups Projects
Commit a0e8b8b7 authored by Robert Guetzkow's avatar Robert Guetzkow Committed by Robert Guetzkow
Browse files

Fix T82830: Handle limit for vertex color and uv layers in importer

Blender has a limit for both vertex color layers and UV layers. The
functions `bpy.types.Mesh.vertex_colors.new()` and
`bpy.types.Mesh.uv_layers.new()` will return `None` once the limit
is reached. The FBX importer and glTF importer didn't handle this
case before and attempted to access the `data`, which failed. This
patch adds the missing checks. In case no vertex colors or uv map
can be created, the assignment of colors or uv coordinates is
skipped.

Reviewed By: mont29, julien

Differential Revision: https://developer.blender.org/D9613
parent f3a8b264
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment