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:
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.
|
||||
|
Loading…
Reference in New Issue
Block a user