mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Fix for the export error when there is no Shape Keys available
This commit is contained in:
parent
36da80c0d0
commit
11e5f39fdc
1 changed files with 4 additions and 3 deletions
|
@ -193,9 +193,10 @@ def make_frame(mesh, vertmap, idx):
|
|||
frame = MDL.Frame()
|
||||
frame.name = "frame" + str(idx)
|
||||
|
||||
shape_keys_amount = len(bpy.context.object.data.shape_keys.key_blocks)
|
||||
if shape_keys_amount > idx:
|
||||
frame.name = bpy.context.object.data.shape_keys.key_blocks[idx].name
|
||||
if bpy.context.object.data.shape_keys:
|
||||
shape_keys_amount = len(bpy.context.object.data.shape_keys.key_blocks)
|
||||
if shape_keys_amount > idx:
|
||||
frame.name = bpy.context.object.data.shape_keys.key_blocks[idx].name
|
||||
|
||||
for v in vertmap:
|
||||
mv = mesh.vertices[v]
|
||||
|
|
Loading…
Reference in a new issue