Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-09 00:36:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-09 00:36:44 +0300
commitc05f4813b650b8b4d45c172c549947e562bf71aa (patch)
tree6f9a4887882a35da09fe6998bbcb318426cb4877 /animation_add_corrective_shape_key.py
parentcf8e2d201c86bfd6e8dc5817c8b6748787fd2182 (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 'animation_add_corrective_shape_key.py')
-rw-r--r--animation_add_corrective_shape_key.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py
index bf07145b..49967b10 100644
--- a/animation_add_corrective_shape_key.py
+++ b/animation_add_corrective_shape_key.py
@@ -121,7 +121,7 @@ def applyX(ob, mesh, x ):
v = mesh[i]
v.co = x[i]
- ob.data.update_tag()
+ ob.data.update()
return x
@@ -141,7 +141,7 @@ def func_add_corrective_pose_shape( source, target):
except:
basis = ob_1.shape_key_add()
basis.name = "Basis"
- ob_1.data.update_tag()
+ ob_1.data.update()
key_index = ob_1.active_shape_key_index
@@ -212,7 +212,7 @@ def func_add_corrective_pose_shape( source, target):
# set the new shape key value to 1.0, so we see the result instantly
ob_1.active_shape_key.value = 1.0
- #mesh_1.update_tag()
+ #mesh_1.update()
ob_1.show_only_shape_key = False
@@ -387,7 +387,7 @@ def func_add_corrective_pose_shape_fast(source, target):
except:
basis = target.shape_key_add()
basis.name = "Basis"
- target.data.update_tag()
+ target.data.update()
key_index = target.active_shape_key_index
@@ -440,7 +440,7 @@ def func_add_corrective_pose_shape_fast(source, target):
pass
target.show_only_shape_key = False
- target.data.update_tag()
+ target.data.update()