Blender V5.3
blender::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
Main * bmain
bool bmain_is_temp

Detailed Description

Definition at line 129 of file bpy_library_load.cc.

Member Data Documentation

◆ abspath

char blender::BPy_Library::abspath[FILE_MAX]

◆ bf_reports

BlendFileReadReport blender::BPy_Library::bf_reports

Definition at line 140 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_enter().

◆ blo_handle

BlendHandle* blender::BPy_Library::blo_handle

◆ bmain

Main* blender::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 160 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_enter(), and blender::bpy_lib_exit().

◆ bmain_is_temp

bool blender::BPy_Library::bmain_is_temp

Definition at line 161 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_enter(), and blender::bpy_lib_exit().

◆ create_liboverrides

bool blender::BPy_Library::create_liboverrides

Definition at line 144 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_enter(), and blender::bpy_lib_exit().

◆ dict

PyObject* blender::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 155 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_dealloc(), blender::bpy_lib_dir(), blender::bpy_lib_enter(), and blender::bpy_lib_exit().

◆ flag

int blender::BPy_Library::flag

◆ liboverride_flags

eBKELibLinkOverride blender::BPy_Library::liboverride_flags

Definition at line 145 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_enter(), and blender::bpy_lib_exit().

◆ relpath

PyObject_HEAD char blender::BPy_Library::relpath[FILE_MAX]

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

Definition at line 134 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_enter().

◆ reports

ReportList blender::BPy_Library::reports

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

Definition at line 139 of file bpy_library_load.cc.

Referenced by blender::bpy_lib_enter(), and blender::bpy_lib_exit().


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