From 227d391dc00ff7b59a54c389545f54cae9ad251a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 6 Jul 2015 19:36:47 -0400 Subject: [PATCH] Export from the first frame by default --- korman/operators/op_export.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/korman/operators/op_export.py b/korman/operators/op_export.py index 2e845e3..ded0414 100644 --- a/korman/operators/op_export.py +++ b/korman/operators/op_export.py @@ -138,7 +138,12 @@ class _UiHelper: def __enter__(self): self.active_object = bpy.context.object self.selected_objects = bpy.context.selected_objects - self.layers = tuple(bpy.context.scene.layers) + + scene = bpy.context.scene + self.layers = tuple(scene.layers) + self.frame_num = scene.frame_current + scene.frame_set(scene.frame_start) + scene.update() def __exit__(self, type, value, traceback): for i in bpy.data.objects: @@ -147,6 +152,7 @@ class _UiHelper: scene = bpy.context.scene scene.objects.active = self.active_object scene.layers = self.layers + scene.frame_set(self.frame_num) scene.update()