mgschwan/blensor — pull request #4 by petermoz (2012-03-20 23:34:24+00:00)
Title: Export motion bug

Using ```bpy.ops``` to change the frame was not triggering a scene update, and even an explicit update did not cause ```matrix_world``` to be recomputed. Therefore incorrect nav data was being exported.

#### Recreating the problem
Make the sensor follow an animated path. Change to (e.g.) frame 20. Run export motion. The first nav solution exported will be from frame 20, not frame 1.

#### Fix
Use ```bpy.context.scene.frame_set()``` instead.