diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-09 00:36:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-09 00:36:44 +0300 |
commit | c05f4813b650b8b4d45c172c549947e562bf71aa (patch) | |
tree | 6f9a4887882a35da09fe6998bbcb318426cb4877 /io_scene_x3d/import_x3d.py | |
parent | cf8e2d201c86bfd6e8dc5817c8b6748787fd2182 (diff) |
incorrectly switched mesh.update() --> mesh.update_tag(),
update_tag() tags for depsgraph update only, update() executes normal recalculation and creates edge data.
Diffstat (limited to 'io_scene_x3d/import_x3d.py')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index f2c86fe8..b4b9fe09 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -1700,7 +1700,7 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry): # bpymesh.faces.extend(faces, smooth=True) # bpymesh.calcNormals() - bpymesh.update_tag() + bpymesh.update() if len(bpymesh.faces) != len(faces): print('\tWarning: adding faces did not work! file is invalid, not adding UVs or vcolors') @@ -1917,7 +1917,7 @@ def importMesh_PointSet(geom, ancestry): bpymesh.vertices.foreach_set("co", [a for v in points for a in v]) # bpymesh.calcNormals() # will just be dummy normals - bpymesh.update_tag() + bpymesh.update() return bpymesh GLOBALS['CIRCLE_DETAIL'] = 12 |