Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/generic/bpy_internal_import.c
| Context not available. | |||||
| #include <Python.h> | #include <Python.h> | ||||
| #include <stddef.h> | #include <stddef.h> | ||||
| #include "CLG_log.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "DNA_text_types.h" | #include "DNA_text_types.h" | ||||
| Context not available. | |||||
| #include "bpy_internal_import.h" /* own include */ | #include "bpy_internal_import.h" /* own include */ | ||||
| static CLG_LogRef LOG = { "bpy.internal_import" }; | |||||
| static Main *bpy_import_main = NULL; | static Main *bpy_import_main = NULL; | ||||
| static ListBase bpy_import_main_list; | static ListBase bpy_import_main_list; | ||||
| Context not available. | |||||
| *found = 0; | *found = 0; | ||||
| if (!maggie) { | if (!maggie) { | ||||
| printf("ERROR: bpy_import_main_set() was not called before running python. this is a bug.\n"); | CLOG_ERROR(&LOG, "bpy_import_main_set() was not called before running python. this is a bug."); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| Context not available. | |||||
| Main *maggie = bpy_import_main; | Main *maggie = bpy_import_main; | ||||
| if (!maggie) { | if (!maggie) { | ||||
| printf("ERROR: bpy_import_main_set() was not called before running python. this is a bug.\n"); | CLOG_ERROR(&LOG, "bpy_import_main_set() was not called before running python. this is a bug."); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| Context not available. | |||||