diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-07-03 11:14:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-07-03 11:14:48 +0400 |
commit | b8d8c1fd60a756ebc9d583e96004b91faf8213b5 (patch) | |
tree | d618ff243f6e7fee7f8d383e8d8697a2c58bbba5 /release/scripts/bpymodules/BPyMesh.py | |
parent | 4ca0e9070a9d6bcfe3ad4dbe734971c5fd98c92d (diff) |
BPyMesh getMeshFromObject was failing to copy the vert weights because is a dumb mistage within a try - Thanks lightbringer for finding the error
Diffstat (limited to 'release/scripts/bpymodules/BPyMesh.py')
-rw-r--r-- | release/scripts/bpymodules/BPyMesh.py | 2 |
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. |