Fix for [#31396] "bge.logic.LibLoad fails to import text blocks" reported by Leonard...
authorMitchell Stokes <mogurijin@gmail.com>
Thu, 21 Jun 2012 05:41:06 +0000 (05:41 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Thu, 21 Jun 2012 05:41:06 +0000 (05:41 +0000)
commitd8e2c475a0dbfb9de31c363f76899435d80cff8f
treebf96da27100e88225895bb58e489934494b10191
parent501922782fec2cd626e3bea13d67f9e225ab025e
Fix for [#31396] "bge.logic.LibLoad fails to import text blocks" reported by Leonard Ritter.

Blender's import function check's the Text datablocks in main for additional modules for importing. However, libloaded scenes were 1) not loading Text datablocks and 2) not letting bpy know about them. Text datablocks are now loaded if a Scene is loaded and bpy can now looking through extra Mains to find additional modules.
source/blender/python/generic/bpy_internal_import.c
source/blender/python/generic/bpy_internal_import.h
source/gameengine/Converter/KX_BlenderSceneConverter.cpp
source/gameengine/Ketsji/KX_PythonInit.cpp
source/gameengine/Ketsji/KX_PythonInit.h