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:
parent
f54d10bb80
commit
89772ad90d
BIN
io_scene_psk_psa-master-4.2.1.zip
Normal file
BIN
io_scene_psk_psa-master-4.2.1.zip
Normal file
Binary file not shown.
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user