created uv map to have constistent name with Blender uvs

Previously it was named "Float2"
This commit is contained in:
Andrej730
2023-11-28 16:01:10 +05:00
parent 18c93a13ec
commit c6643da4ba
+2 -1
View File
@@ -387,7 +387,8 @@ class Loader(blenderbim.core.tool.Loader):
# Get a BMesh representation
bm = bmesh.new()
bm.from_mesh(mesh)
uv_layer = bm.loops.layers.uv.verify()
# constistent naming with how Blender does it
uv_layer = bm.loops.layers.uv.active or bm.loops.layers.uv.new("UVMap")
# remap the faceset CoordList index to the vertices in blender mesh
coordinates_remap = []