提交 ab7c0a8a 编写于 作者: R repsac

Fixed a bug where None value was returned on geometries that had no morph...

Fixed a bug where None value was returned on geometries that had no morph targets when morph animation export was selected
上级 48be885e
......@@ -340,7 +340,7 @@ def morph_targets(mesh, options):
break
else:
logger.info("No valid morph data detected")
return
return []
manifest = []
for index, morph in enumerate(morphs):
......
......@@ -432,12 +432,12 @@ class Geometry(base_classes.BaseNode):
self[constants.INFLUENCES_PER_VERTEX] = influences
self[constants.SKIN_INDICES] = api.mesh.skin_indices(
self.node, bone_map, influences)
self.node, bone_map, influences) or []
self[constants.SKIN_WEIGHTS] = api.mesh.skin_weights(
self.node, bone_map, influences)
self.node, bone_map, influences) or []
if self.options.get(constants.MORPH_TARGETS):
logger.info("Parsing %s", constants.MORPH_TARGETS)
self[constants.MORPH_TARGETS] = api.mesh.morph_targets(
self.node, self.options)
self.node, self.options) or []
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册