[Bf-extensions-cvs] [ffb9eb7] master: Fix T43899: FBX and OBJ importers after new RNA API 'cleanup'.
Bastien Montagne
noreply at git.blender.org
Thu Mar 5 20:56:21 CET 2015
Commit: ffb9eb7eda6961af0e76fcaf81199183da55812c
Author: Bastien Montagne
Date: Thu Mar 5 20:52:44 2015 +0100
Branches: master
https://developer.blender.org/rBAffb9eb7eda6961af0e76fcaf81199183da55812c
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...
===================================================================
M io_scene_fbx/import_fbx.py
M io_scene_obj/import_obj.py
===================================================================
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 48943d3..bee5c0e 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 6136538..bc184b4 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...
More information about the Bf-extensions-cvs
mailing list