From c05f4813b650b8b4d45c172c549947e562bf71aa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 8 Feb 2011 21:36:44 +0000 Subject: incorrectly switched mesh.update() --> mesh.update_tag(), update_tag() tags for depsgraph update only, update() executes normal recalculation and creates edge data. --- io_shape_mdd/import_mdd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'io_shape_mdd') 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) -- cgit v1.2.3