1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2025-02-21 19:49:35 +01:00

Added an empty MORPH_BASE shape key if any shape keys are present on import.

This commit is contained in:
Colin Basnett 2023-04-03 22:01:25 -07:00
parent f54d10bb80
commit 89772ad90d
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -233,6 +233,10 @@ def import_psk(psk: Psk, context, options: PskImportOptions) -> PskImportResult:
# MORPHS (SHAPE KEYS)
morph_data_iterator = iter(psk.morph_data)
if psk.has_morph_data:
mesh_object.shape_key_add(name='MORPH_BASE', from_mix=False)
for morph_info in psk.morph_infos:
shape_key = mesh_object.shape_key_add(name=morph_info.name.decode('windows-1252'), from_mix=False)