patch [#24496] Fix for exporting animations to OBJ format.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 2 Nov 2010 04:12:00 +0000 (04:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 2 Nov 2010 04:12:00 +0000 (04:12 +0000)
from Keith Astoria (kastoria)

release/scripts/op/io_scene_obj/export_obj.py

index 3fd91615bb68a5d1020c8a5bcdf746c184a60ec5..352c82a4dbdba6214817a2b4cdebe3c1105a6af1 100644 (file)
@@ -759,7 +759,7 @@ def _write(context, filepath,
             if EXPORT_ANIMATION: # Add frame to the filepath.
                 context_name[2] = '_%.6d' % frame
 
-            scene.frame_current = frame
+            scene.frame_set(frame, 0.0)
             if EXPORT_SEL_ONLY:
                 objects = context.selected_objects
             else:
@@ -787,7 +787,7 @@ def _write(context, filepath,
                   EXPORT_CURVE_AS_NURBS)
 
 
-        scene.frame_current = orig_frame
+        scene.frame_set(orig_frame, 0.0)
 
     # Restore old active scene.
 #   orig_scene.makeCurrent()