mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Blender ASE: fix animation import.
git-svn-id: https://svn.eduke32.com/eduke32@1838 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e17a4834eb
commit
f1c2dcaef8
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue