From ec01efd8d87ca3fa83d053d96f41cdeee8bc1f78 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 8 Jul 2015 19:58:05 -0400 Subject: [PATCH] Don't export empty matrix44 controllers --- korman/exporter/animation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/korman/exporter/animation.py b/korman/exporter/animation.py index 64b4afe..b8e1d54 100644 --- a/korman/exporter/animation.py +++ b/korman/exporter/animation.py @@ -43,6 +43,8 @@ class AnimationConverter: def make_matrix44_controller(self, pos_fcurves, scale_fcurves, default_pos, default_scale): pos_keyframes, pos_bez = self._process_keyframes(pos_fcurves) scale_keyframes, scale_bez = self._process_keyframes(scale_fcurves) + if not pos_keyframes and not scale_keyframes: + return None # Matrix keyframes cannot do bezier schtuff if pos_bez or scale_bez: