debug prints
This commit is contained in:
parent
e562d2515e
commit
1d0eaf9371
|
@ -189,6 +189,7 @@ def make_instancing_and_skinning(mat: Material, mat_users: Dict[Material, List[O
|
|||
if mat.arm_custom_material == '':
|
||||
# Morph Targets
|
||||
if arm.utils.export_morph_targets(bo) and not arm.utils.export_vcols(bo):
|
||||
print("sk and no vcol")
|
||||
global_elems.append({'name': 'morph', 'data': 'short2norm'})
|
||||
# GPU Skinning
|
||||
if arm.utils.export_bone_data(bo):
|
||||
|
|
|
@ -772,17 +772,22 @@ def export_bone_data(bobject: bpy.types.Object) -> bool:
|
|||
|
||||
def export_morph_targets(bobject: bpy.types.Object) -> bool:
|
||||
if not hasattr(bobject.data, 'shape_keys'):
|
||||
print('A')
|
||||
return False
|
||||
|
||||
shape_keys = bobject.data.shape_keys
|
||||
if shape_keys and len(shape_keys.key_blocks) > 1:
|
||||
return shape_keys
|
||||
return None
|
||||
print('B')
|
||||
return True
|
||||
print('C')
|
||||
return False
|
||||
|
||||
def export_vcols(bobject: bpy.types.Object) -> bool:
|
||||
for material in bobject.data.materials:
|
||||
if material is not None and material.export_vcols:
|
||||
print('D')
|
||||
return True
|
||||
print('E')
|
||||
return False
|
||||
|
||||
def open_editor(hx_path=None):
|
||||
|
|
Loading…
Reference in New Issue