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 == '':
|
if mat.arm_custom_material == '':
|
||||||
# Morph Targets
|
# Morph Targets
|
||||||
if arm.utils.export_morph_targets(bo) and not arm.utils.export_vcols(bo):
|
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'})
|
global_elems.append({'name': 'morph', 'data': 'short2norm'})
|
||||||
# GPU Skinning
|
# GPU Skinning
|
||||||
if arm.utils.export_bone_data(bo):
|
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:
|
def export_morph_targets(bobject: bpy.types.Object) -> bool:
|
||||||
if not hasattr(bobject.data, 'shape_keys'):
|
if not hasattr(bobject.data, 'shape_keys'):
|
||||||
|
print('A')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
shape_keys = bobject.data.shape_keys
|
shape_keys = bobject.data.shape_keys
|
||||||
if shape_keys and len(shape_keys.key_blocks) > 1:
|
if shape_keys and len(shape_keys.key_blocks) > 1:
|
||||||
return shape_keys
|
print('B')
|
||||||
return None
|
return True
|
||||||
|
print('C')
|
||||||
|
return False
|
||||||
|
|
||||||
def export_vcols(bobject: bpy.types.Object) -> bool:
|
def export_vcols(bobject: bpy.types.Object) -> bool:
|
||||||
for material in bobject.data.materials:
|
for material in bobject.data.materials:
|
||||||
if material is not None and material.export_vcols:
|
if material is not None and material.export_vcols:
|
||||||
|
print('D')
|
||||||
return True
|
return True
|
||||||
|
print('E')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def open_editor(hx_path=None):
|
def open_editor(hx_path=None):
|
||||||
|
|
Loading…
Reference in a new issue