From aaf1395bb493d2db5c7c3cd89fa2e68343c1e0e0 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 8 Jul 2015 14:54:33 -0400 Subject: [PATCH] Fix bug in opacity anim cleverness Just remove the cleverness anyway. That was kind of dense IMO. --- korman/exporter/material.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 421d8d5..6751ce4 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -341,9 +341,11 @@ class MaterialConverter: return base_layer def _export_layer_opacity_animation(self, bm, tex_slot, fcurves): - opacity_fcurve = next((i for i in fcurves if i.data_path == "plasma_layer.opacity" and i.keyframe_points), None) - ctrl = self._exporter().animation.make_scalar_leaf_controller(opacity_fcurve) - return ctrl + for i in fcurves: + if i.data_path == "plasma_layer.opacity": + ctrl = self._exporter().animation.make_scalar_leaf_controller(i) + return ctrl + return None def _export_layer_transform_animation(self, bm, tex_slot, fcurves): pos_fcurves = (i for i in fcurves if i.data_path.find("offset") != -1)