Fix T43899: FBX and OBJ importers after new RNA API 'cleanup'.
Caused by rBc755d8fbb520fbcf2a, can understand we want a 'good' (sigh) naming before release, but please ensure code already using it is updated then...
This commit is contained in:
parent
fa3133fa79
commit
ffb9eb7eda
Notes:
blender-bot
2023-02-14 19:58:40 +01:00
Referenced by issue #43899, OBJ Importer Fails (Prints Error)
|
@ -1190,7 +1190,7 @@ def blen_read_geom(fbx_tmpl, fbx_obj, settings):
|
|||
return geom_mat_no * Vector(v)
|
||||
ok_normals = blen_read_geom_layer_normal(fbx_obj, mesh, nortrans)
|
||||
|
||||
mesh.validate(cleanup_cddata=False) # *Very* important to not remove lnors here!
|
||||
mesh.validate(clean_customdata=False) # *Very* important to not remove lnors here!
|
||||
|
||||
if ok_normals:
|
||||
clnors = array.array('f', [0.0] * (len(mesh.loops) * 3))
|
||||
|
|
|
@ -616,7 +616,7 @@ def create_mesh(new_objects,
|
|||
# edges should be a list of (a, b) tuples
|
||||
me.edges.foreach_set("vertices", unpack_list(edges))
|
||||
|
||||
me.validate(cleanup_cddata=False) # *Very* important to not remove lnors here!
|
||||
me.validate(clean_customdata=False) # *Very* important to not remove lnors here!
|
||||
me.update(calc_edges=use_edges)
|
||||
|
||||
# Un-tessellate as much as possible, in case we had to triangulate some ngons...
|
||||
|
|
Loading…
Reference in New Issue