From 5b0e18df1de676865795f17705a8442ad45480de Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Tue, 23 Oct 2018 13:41:29 +0200 Subject: [PATCH] * fix for wrong export of first frame of animation clip due to lag in drivers update --- io_scene_dae/export_dae.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/io_scene_dae/export_dae.py b/io_scene_dae/export_dae.py index 29d3bfc..f9adc3f 100644 --- a/io_scene_dae/export_dae.py +++ b/io_scene_dae/export_dae.py @@ -1666,7 +1666,12 @@ def export_animation(self, start, end, allowed=None): tcn = [] xform_cache = {} blend_cache = {} - + + # Blender updates drivers with one frame delay, causing the first frame to be wrong in the exported clip + # Jumping to the two first frames before exporting the clip fixes this issue + self.scene.frame_set(start) + self.scene.frame_set(start + 1) + # Change frames first, export objects last, boosts performance for t in range(start, end + 1): self.scene.frame_set(t)