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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-01 18:09:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-01 18:09:35 +0300
commit7bd3d1213a2983a544adf8e1805d043f1bb10a32 (patch)
treed779179bc0d01bdfeec024e21fd31c7983f525b2 /release
parentf5980ee6aefe37c00759f95763752c5da617a5bd (diff)
shape key transfer fix.
workaround for the vert locations not being relyable, use the base shape key rather then the verts to calculate the offsets.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/op/object.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/op/object.py b/release/scripts/op/object.py
index c036ebd6c75..f6c60e0da53 100644
--- a/release/scripts/op/object.py
+++ b/release/scripts/op/object.py
@@ -171,6 +171,7 @@ class ShapeTransfer(bpy.types.Operator):
me = ob.data
key = ob.add_shape_key(from_mix=False)
if len(me.shape_keys.keys) == 1:
+ key.name = "Basis"
key = ob.add_shape_key(from_mix=False) # we need a rest
key.name = name
ob.active_shape_key_index = len(me.shape_keys.keys) - 1
@@ -188,7 +189,8 @@ class ShapeTransfer(bpy.types.Operator):
orig_shape_coords = me_cos(ob_act.active_shape_key.data)
orig_normals = me_nos(me.verts)
- orig_coords = me_cos(me.verts)
+ # orig_coords = me_cos(me.verts) # the actual mverts location isnt as relyable as the base shape :S
+ orig_coords = me_cos(me.shape_keys.keys[0].data)
for ob_other in objects:
me_other = ob_other.data