Implement shape key conditions
This commit is contained in:
parent
603d23fbfd
commit
83a60e7462
|
@ -771,8 +771,11 @@ def export_bone_data(bobject: bpy.types.Object) -> bool:
|
|||
return bobject.find_armature() and is_bone_animation_enabled(bobject) and get_rp().arm_skin == 'On'
|
||||
|
||||
def export_morph_targets(bobject: bpy.types.Object) -> bool:
|
||||
if get_rp().arm_morph_target != 'On':
|
||||
return False
|
||||
|
||||
if not hasattr(bobject.data, 'shape_keys'):
|
||||
return False
|
||||
return False
|
||||
|
||||
shape_keys = bobject.data.shape_keys
|
||||
if not shape_keys:
|
||||
|
|
|
@ -303,6 +303,9 @@ project.addSources('Sources');
|
|||
rpdat = arm.utils.get_rp()
|
||||
if rpdat.arm_skin != 'Off':
|
||||
assets.add_khafile_def('arm_skin')
|
||||
|
||||
if rpdat.arm_morph_target != 'Off':
|
||||
assets.add_khafile_def('arm_morph_target')
|
||||
|
||||
if rpdat.arm_particles != 'Off':
|
||||
assets.add_khafile_def('arm_particles')
|
||||
|
|
Loading…
Reference in New Issue