laas/morse — pull request #307 by davidhodo (2013-03-04 22:02:06+00:00)
Title: [blender] fix camera switching bug

In 1.0 when using the world camera with a human in a scene created with a builder script, the movement keys move both the camera and the human when movement control is set to control the human only. Controlling the camera only works fine.

In camera_view, an object named "Human" is searched for to control the movement keys. In the new version of builder the default object name for a human is "human" and so the human object is never found to check it's game properties. This would also be a problem if (like in the instructions at: http://www.openrobots.org/morse/doc/stable/user/builder.html) the human name was changed to something else like "jerry".

I modified the camera movement code to look for any object with a move_cameraFP game property to determine if the world camera should be moved. This would also allow for other components besides a human to make use of the keyboard keys and disable camera movement.