Blender Git Commit Log
Git Commits -> Revision b4e4ccf
Revision b4e4ccf by Campbell Barton (master) April 5, 2009, 19:37 (GMT) |
BGE PyAPI can now import text (within the blend-file) Previously this only worked with the Blender API. - bpy_internal_import small C file that Blender scripting and the game engine use. - Tested with blender, blenderplayer, loading files - Needed to use a hack to override the Main struct since the game engine doesn't set G.main - when the sandbox is set, only internal scripts can be imported. |
Commit Details:
Full Hash: b4e4ccf92ddc8a7d4ed3da13c589b2f7c44baa0d
SVN Revision: 19550
Parent Commit: 3dacfbb
Lines Changed: +333, -188
2 Added Paths:
/source/blender/python/api2_2x/bpy_internal_import.c (+230, -0) (View)
/source/blender/python/api2_2x/bpy_internal_import.h (+48, -0) (View)
/source/blender/python/api2_2x/bpy_internal_import.h (+48, -0) (View)
7 Modified Paths:
/source/blender/python/BPY_interface.c (+3, -174) (Diff)
/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+2, -2) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_Application.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/CMakeLists.txt (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+41, -8) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.h (+2, -2) (Diff)
/source/gameengine/Ketsji/SConscript (+5, -1) (Diff)
/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp (+2, -2) (Diff)
/source/gameengine/GamePlayer/ghost/GPG_Application.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/CMakeLists.txt (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+41, -8) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.h (+2, -2) (Diff)
/source/gameengine/Ketsji/SConscript (+5, -1) (Diff)