Blender  V2.93
Public Attributes | List of all members
Global Struct Reference

#include <BKE_global.h>

Public Attributes

struct Mainmain
 
char ima [1024]
 
char lib [1024]
 
bool relbase_valid
 
bool file_loaded
 
bool save_over
 
struct ListBase recent_files
 
bool is_break
 
bool background
 
bool factory_startup
 
short moving
 
bool is_rendering
 
short debug_value
 
int f
 
struct {
   int   level
 
   void *   file
 
log
 
int debug
 
int fileflags
 
char autoexec_fail [200]
 

Detailed Description

Definition at line 38 of file BKE_global.h.

Member Data Documentation

◆ autoexec_fail

char Global::autoexec_fail[200]

Message to use when auto execution fails.

Definition at line 103 of file BKE_global.h.

◆ background

bool Global::background

Definition at line 57 of file BKE_global.h.

◆ debug

int Global::debug

◆ debug_value

short Global::debug_value

Debug value, can be set from the UI and python, used for testing nonstandard features. DO NOT abuse it with generic checks like if (G.debug_value > 0). Do not use it as bitflags. Only precise specific values should be checked for, to avoid unpredictable side-effects. Please document here the value(s) you are using (or a range of values reserved to some area).

  • -16384 and below: Reserved for python (add-ons) usage.
  • -1: Disable faster motion paths computation (since 08/2018).
  • 1 - 30: EEVEE debug/stats values (01/2018).
  • 101: Enable UI debug drawing of fullscreen area's corner widget (10/2014).
  • 666: Use quicker batch delete for outliners' delete hierarchy (01/2019).
  • 777: Enable UI node panel's sockets polling (11/2011).
  • 799: Enable some mysterious new depsgraph behavior (05/2015).
  • 1112: Disable new Cloth internal springs handling (09/2014).
  • 1234: Disable new dyntopo code fixing skinny faces generation (04/2015).
  • 3001: Enable additional Fluid modifier (Mantaflow) options (02/2020).
  • 4000: Line Art state output and debugging logs (03/2021).
  • 16384 and above: Reserved for python (add-ons) usage.

Definition at line 83 of file BKE_global.h.

◆ f

int Global::f

Saved to the blend file as FileGlobal.globalf, however this is now only used for runtime options.

Definition at line 87 of file BKE_global.h.

Referenced by BKE_blender_globals_init().

◆ factory_startup

bool Global::factory_startup

Definition at line 58 of file BKE_global.h.

◆ file

void* Global::file

FILE handle or use stderr (we own this so close when done).

Definition at line 93 of file BKE_global.h.

Referenced by BKE_blender_free().

◆ file_loaded

bool Global::file_loaded

Definition at line 48 of file BKE_global.h.

◆ fileflags

int Global::fileflags

This variable is written to / read from FileGlobal.fileflags

Definition at line 100 of file BKE_global.h.

◆ ima

char Global::ima[1024]

Strings: last saved

Definition at line 44 of file BKE_global.h.

Referenced by BKE_blender_globals_init().

◆ is_break

bool Global::is_break

Has escape been pressed or Ctrl+C pressed in background mode, used for render quit.

Definition at line 55 of file BKE_global.h.

◆ is_rendering

bool Global::is_rendering

To indicate render is busy, prevent render-window events etc.

Definition at line 63 of file BKE_global.h.

◆ level

int Global::level

Logging vars (different loggers may use).

Definition at line 91 of file BKE_global.h.

Referenced by BKE_blender_globals_init().

◆ lib

char Global::lib[1024]

Definition at line 44 of file BKE_global.h.

◆ 

struct { ... } Global::log

◆ main

struct Main* Global::main

Active pointers.

Definition at line 41 of file BKE_global.h.

◆ moving

short Global::moving

Definition at line 60 of file BKE_global.h.

◆ recent_files

struct ListBase Global::recent_files

Strings of recent opened files.

Definition at line 49 of file BKE_global.h.

◆ relbase_valid

bool Global::relbase_valid

When set: G_MAIN->name contains valid relative base path.

Definition at line 47 of file BKE_global.h.

◆ save_over

bool Global::save_over

Definition at line 49 of file BKE_global.h.


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