mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
created uv map to have constistent name with Blender uvs
Previously it was named "Float2"
This commit is contained in:
@@ -387,7 +387,8 @@ class Loader(blenderbim.core.tool.Loader):
|
|||||||
# Get a BMesh representation
|
# Get a BMesh representation
|
||||||
bm = bmesh.new()
|
bm = bmesh.new()
|
||||||
bm.from_mesh(mesh)
|
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
|
# remap the faceset CoordList index to the vertices in blender mesh
|
||||||
coordinates_remap = []
|
coordinates_remap = []
|
||||||
|
|||||||
Reference in New Issue
Block a user