Blender Git Commit Log
Git Commits -> Revision 9b948ca
Revision 9b948ca by Brecht Van Lommel (master) October 11, 2008, 00:56 (GMT) |
Fix for a relative paths issue in the game engine. G.sce was being kept as the original file, but that can't work correct for solving relative paths once a .blend in another directory is loaded. The reason it went OK with the apricot tech demo is that the images there were lib linked into the level file, which still worked. Now it sets G.sce to the current loaded .blend file. Note that the python config file path still uses the first loaded .blend file so it looks in the same location each time. Also added some NULL pointer checks in the joystick code because it was crashing there on Mac, there's similar checks in related functions so I'm assuming this was just a missed case. |
Commit Details:
Full Hash: 9b948cad08067a6bedd49ccfb059874aba7555b9
SVN Revision: 17012
Parent Commit: c3aef29
Lines Changed: +54, -32
6 Modified Paths:
/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+28, -16) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp (+2, -1) (Diff)
/source/gameengine/GameLogic/SCA_JoystickManager.cpp (+2, -1) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp (+7, -8) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+14, -6) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.h (+1, -0) (Diff)
/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp (+2, -1) (Diff)
/source/gameengine/GameLogic/SCA_JoystickManager.cpp (+2, -1) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp (+7, -8) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+14, -6) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.h (+1, -0) (Diff)