Blender V5.0
BPy_Library Struct Reference

Public Attributes

PyObject_HEAD char relpath [FILE_MAX]
char abspath [FILE_MAX]
BlendHandle * blo_handle
ReportList reports
BlendFileReadReport bf_reports
int flag
bool create_liboverrides
eBKELibLinkOverride liboverride_flags
PyObject * dict
Mainbmain
bool bmain_is_temp

Detailed Description

Definition at line 79 of file bpy_library_load.cc.

Member Data Documentation

◆ abspath

char BPy_Library::abspath[FILE_MAX]

The absolute path.

Definition at line 86 of file bpy_library_load.cc.

Referenced by bpy_lib_enter().

◆ bf_reports

BlendFileReadReport BPy_Library::bf_reports

Definition at line 90 of file bpy_library_load.cc.

◆ blo_handle

BlendHandle* BPy_Library::blo_handle

Definition at line 87 of file bpy_library_load.cc.

Referenced by bpy_lib_enter().

◆ bmain

Main* BPy_Library::bmain

Borrowed reference to the bmain, taken from the RNA instance of #RNA_BlendDataLibraries. Defaults to #G.main, Otherwise use a temporary Main when bmain_is_temp is true.

Definition at line 110 of file bpy_library_load.cc.

◆ bmain_is_temp

bool BPy_Library::bmain_is_temp

Definition at line 111 of file bpy_library_load.cc.

◆ create_liboverrides

bool BPy_Library::create_liboverrides

Definition at line 94 of file bpy_library_load.cc.

Referenced by bpy_lib_enter().

◆ dict

PyObject* BPy_Library::dict

A dictionary, accessed via attributes (so keys are strings).

  • Stores the ID types ("meshes", "objects", etc...).
  • Also has a "version" attribute to support accessing the blender version.

Assigned a pre-sized dictionary using #BPY_LIBRARY_DICT_NUM_INIT item. this will always have these the ID names and some additional slots filled.

Definition at line 105 of file bpy_library_load.cc.

Referenced by bpy_lib_enter().

◆ flag

int BPy_Library::flag

Definition at line 92 of file bpy_library_load.cc.

Referenced by bpy_lib_enter().

◆ liboverride_flags

eBKELibLinkOverride BPy_Library::liboverride_flags

Definition at line 95 of file bpy_library_load.cc.

Referenced by bpy_lib_enter().

◆ relpath

PyObject_HEAD char BPy_Library::relpath[FILE_MAX]

Required Python macro. The path supplied by the caller (may be relative).

Definition at line 84 of file bpy_library_load.cc.

Referenced by bpy_lib_enter().

◆ reports

ReportList BPy_Library::reports

Referenced by blo_handle, so stored here to keep alive for long enough.

Definition at line 89 of file bpy_library_load.cc.


The documentation for this struct was generated from the following file: