make sure the extraction would be skipped if there is empty list of animated_skeleton

This commit is contained in:
Kayla Man 2023-11-07 15:46:12 +08:00
parent 3999be09a1
commit 3fdccc886f

View file

@ -42,6 +42,11 @@ class ExtractFBXAnimation(publish.Extractor):
# Export from the rig's namespace so that the exported
# FBX does not include the namespace but preserves the node
# names as existing in the rig workfile
if not out_members:
self.log.debug(
"Top group of animated skeleton not found...skipping extraction")
return
namespace = get_namespace(out_members[0])
relative_out_members = [
strip_namespace(node, namespace) for node in out_members