From ffb9eb7eda6961af0e76fcaf81199183da55812c Mon Sep 17 00:00:00 2001 From: Bastien Montagne <montagne29@wanadoo.fr> Date: Thu, 5 Mar 2015 20:52:44 +0100 Subject: [PATCH] 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... --- io_scene_fbx/import_fbx.py | 2 +- io_scene_obj/import_obj.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py index 48943d36c..bee5c0e34 100644 --- a/io_scene_fbx/import_fbx.py +++ b/io_scene_fbx/import_fbx.py @@ -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)) diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 6136538d6..bc184b4e8 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -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... -- GitLab