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>2006-07-03 11:14:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-07-03 11:14:48 +0400
commitb8d8c1fd60a756ebc9d583e96004b91faf8213b5 (patch)
treed618ff243f6e7fee7f8d383e8d8697a2c58bbba5
parent4ca0e9070a9d6bcfe3ad4dbe734971c5fd98c92d (diff)
BPyMesh getMeshFromObject was failing to copy the vert weights because is a dumb mistage within a try - Thanks lightbringer for finding the error
-rw-r--r--release/scripts/bpymodules/BPyMesh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/bpymodules/BPyMesh.py b/release/scripts/bpymodules/BPyMesh.py
index a4f745a3d19..92fe58c1dce 100644
--- a/release/scripts/bpymodules/BPyMesh.py
+++ b/release/scripts/bpymodules/BPyMesh.py
@@ -198,7 +198,7 @@ def getMeshFromObject(ob, container_mesh=None, apply_modifiers=True, vgroups=Tru
tempob.link(mesh)
try:
# Copy the influences if possible.
- groupNames, vWeightDict= meshWeight2Dict(tempMe)
+ groupNames, vWeightDict= meshWeight2Dict(ob.getData(mesh=1))
dict2MeshWeight(mesh, groupNames, vWeightDict)
except:
# if the modifier changes the vert count then it messes it up for us.