Blender ASE: fix animation import.

git-svn-id: https://svn.eduke32.com/eduke32@1838 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2011-03-11 04:55:02 +00:00
parent e17a4834eb
commit f1c2dcaef8

View file

@ -385,8 +385,8 @@ def spawn_mesh(obj):
if objMe.animated: if objMe.animated:
objMe.frameCount -= 1 # do we always get an extra frame at the end? objMe.frameCount -= 1 # do we always get an extra frame at the end?
for frame in objMe.frames: for frame in objMe.frames:
for vert in objMe.verts: for i in range(objMe.vCount):
xyz = Blender.Mathutils.Vector(frame[vert.origi].x, frame[vert.origi].y, frame[vert.origi].z) xyz = Blender.Mathutils.Vector(frame[objMe.verts[i].origi].x, frame[objMe.verts[i].origi].y, frame[objMe.verts[i].origi].z)
newMesh.verts[i].co = xyz; newMesh.verts[i].co = xyz;
newObj.insertShapeKey() newObj.insertShapeKey()