ephysics: fix camera move callback call
authorBruno Dilly <bdilly@profusion.mobi>
Tue, 4 Sep 2012 22:42:10 +0000 (22:42 +0000)
committerBruno Dilly <bdilly@profusion.mobi>
Tue, 4 Sep 2012 22:42:10 +0000 (22:42 +0000)
it should be called after moved flag was set to false
otherwise callback functions moving camera won't work correctly

SVN revision: 76152

legacy/ephysics/src/lib/ephysics_world.cpp

index db5b443..048f46b 100644 (file)
@@ -190,9 +190,9 @@ _ephysics_world_tick_cb(btDynamicsWorld *dynamics_world, btScalar timeStep)
 
    if (camera_moved)
      {
+        ephysics_camera_moved_set(world->camera, EINA_FALSE);
         _ephysics_world_event_callback_call(
            world, EPHYSICS_CALLBACK_WORLD_CAMERA_MOVED, world->camera);
-        ephysics_camera_moved_set(world->camera, EINA_FALSE);
      }