BPyMesh getMeshFromObject was failing to copy the vert weights because is a dumb mistage within a try - Thanks lightbringer for finding the error

This commit is contained in:
Campbell Barton 2006-07-03 07:14:48 +00:00
parent 4ca0e9070a
commit b8d8c1fd60

@ -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.