Skip to content

Commit cedf004

Browse files
jackcaronbhouston
authored andcommitted
put blend shape first, more stable approach
1 parent 8ee9c98 commit cedf004

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • utils/exporters/blender/addons/io_three/exporter

utils/exporters/blender/addons/io_three/exporter/geometry.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -560,11 +560,7 @@ def _parse_geometry(self):
560560
self[constants.SKIN_WEIGHTS] = api.mesh.skin_weights(
561561
self.node, bone_map, influences) or []
562562

563-
if self.options.get(constants.MORPH_TARGETS):
564-
logger.info("Parsing %s", constants.MORPH_TARGETS)
565-
self[constants.MORPH_TARGETS] = api.mesh.morph_targets(
566-
self.node, self.options) or []
567-
elif self.options.get(constants.BLEND_SHAPES):
563+
if self.options.get(constants.BLEND_SHAPES):
568564
logger.info("Parsing %s", constants.BLEND_SHAPES)
569565
mt = api.mesh.blend_shapes(self.node, self.options) or []
570566
self[constants.MORPH_TARGETS] = mt
@@ -574,6 +570,10 @@ def _parse_geometry(self):
574570
merge = self._scene[constants.ANIMATION][0][constants.KEYFRAMES]
575571
for track in tracks:
576572
merge.append(track)
573+
elif self.options.get(constants.MORPH_TARGETS):
574+
logger.info("Parsing %s", constants.MORPH_TARGETS)
575+
self[constants.MORPH_TARGETS] = api.mesh.morph_targets(
576+
self.node, self.options) or []
577577

578578
# In the moment there is no way to add extra data to a Geomtry in
579579
# Three.js. In case there is some day, here is the code:

0 commit comments

Comments
 (0)