From 11891001f2bf069a0cd24beda3a3a1c95f4c54b4 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Tue, 4 Sep 2012 22:42:10 +0000 Subject: [PATCH] ephysics: fix camera move callback call 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ephysics/src/lib/ephysics_world.cpp b/legacy/ephysics/src/lib/ephysics_world.cpp index db5b4430da..048f46bbe7 100644 --- a/legacy/ephysics/src/lib/ephysics_world.cpp +++ b/legacy/ephysics/src/lib/ephysics_world.cpp @@ -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); }