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_shape_mdd | |
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_shape_mdd')
-rw-r--r-- | io_shape_mdd/import_mdd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_shape_mdd/import_mdd.py b/io_shape_mdd/import_mdd.py index c0f1d0c3..0fdc78cb 100644 --- a/io_shape_mdd/import_mdd.py +++ b/io_shape_mdd/import_mdd.py @@ -57,7 +57,7 @@ def load(operator, context, filepath, frame_start=0, frame_step=1): except: basis = obj.shape_key_add() basis.name = "Basis" - obj.data.update_tag() + obj.data.update() scene.frame_current = frame_start @@ -76,7 +76,7 @@ def load(operator, context, filepath, frame_start=0, frame_step=1): for v in verts: # 12 is the size of 3 floats v.co[:] = unpack('>3f', file.read(12)) - # me.update_tag() + # me.update() obj.show_only_shape_key = False # insert keyframes @@ -94,7 +94,7 @@ def load(operator, context, filepath, frame_start=0, frame_step=1): obj.data.shape_keys.keys[index].value = 0.0 shape_keys.keys[len(obj.data.shape_keys.keys) - 1].keyframe_insert("value") - obj.data.update_tag() + obj.data.update() for i in range(frames): UpdateMesh(obj, i) |