enable the skeleton rig content validator and make the fbx animation collector optional and use the asset as both asset_name and asset_type data for custom subset in the loader

This commit is contained in:
Kayla 2023-09-20 21:26:02 +08:00
parent 7252acceb8
commit b7995a41a7
9 changed files with 72 additions and 31 deletions

View file

@ -4113,6 +4113,7 @@ def create_rig_animation_instance(
node.endswith("skeletonAnim_SET")), None)
if not anim_skeleton:
log.debug("No skeletonAnim_SET in rig")
skeleton_mesh = next((node for node in nodes if
node.endswith("skeletonMesh_SET")), None)
if not skeleton_mesh:
@ -4128,8 +4129,9 @@ def create_rig_animation_instance(
if custom_subset:
formatting_data = {
# TODO remove 'asset_type' and replace 'asset_name' with 'asset'
"asset_name": context['asset']['name'],
"asset_type": context['asset']['type'],
# "asset_name": context['asset']['name'],
# "asset_type": context['asset']['type'],
"asset": context["asset"],
"subset": context['subset']['name'],
"family": (
context['subset']['data'].get('family') or