From d8e2c475a0dbfb9de31c363f76899435d80cff8f Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Thu, 21 Jun 2012 05:41:06 +0000 Subject: 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.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/python/generic/bpy_internal_import.h') diff --git a/source/blender/python/generic/bpy_internal_import.h b/source/blender/python/generic/bpy_internal_import.h index 8b41a575d96..980e6edca03 100644 --- a/source/blender/python/generic/bpy_internal_import.h +++ b/source/blender/python/generic/bpy_internal_import.h @@ -62,4 +62,8 @@ extern PyMethodDef bpy_reload_meth; struct Main *bpy_import_main_get(void); void bpy_import_main_set(struct Main *maggie); +/* This is used for importing text from dynamically loaded libraries in the game engine */ +void bpy_import_main_extra_add(struct Main *maggie); +void bpy_import_main_extra_remove(struct Main *maggie); + #endif /* __BPY_INTERNAL_IMPORT_H__ */ -- cgit v1.2.3