feat: mesh normal loading

This commit is contained in:
Swann Martinez 2019-06-14 12:59:55 +02:00
parent 021e132fb3
commit 6f0763c52e
No known key found for this signature in database
GPG Key ID: 414CCAFD8DA720E1

View File

@ -191,7 +191,8 @@ def load_mesh(target=None, data=None, create=False):
mesh_buffer = bmesh.new()
for i in data["vertices"]:
mesh_buffer.verts.new(data["vertices"][i]["co"])
v = mesh_buffer.verts.new(data["vertices"][i]["co"])
v.normal = data["vertices"][i]["normal"]
mesh_buffer.verts.ensure_lookup_table()