Blender's debug mode only worked on startup:
authorWillian Padovani Germano <wpgermano@gmail.com>
Fri, 23 Jan 2004 19:24:45 +0000 (19:24 +0000)
committerWillian Padovani Germano <wpgermano@gmail.com>
Fri, 23 Jan 2004 19:24:45 +0000 (19:24 +0000)
commit23a3a51e16c72d347f15790ed9e4d7bdc2d4f44a
treedd3279b095031344d2bc4bb19eee263d5b1ef6bc
parent5aad4bfceb454974e0800bfab08271c8b3baaff3
Blender's debug mode only worked on startup:
- G.f's G_DEBUG flag was being erased in blenkernel/intern/blender.c's
  setup_app_data:

G.f= bfd->globalf

// added a line above it to fix this:

if (G.f & G_DEBUG) bfd->globalf |=G_DEBUG;
G.f= bfd->globalf;

BPython:
- debug info now only shown if Blender is started with '-d' option
- added ~/.blender/scripts to modules sys.path
- added two new functions to Blender.sys: basename and splitext
- added doc for Blender.sys, updated other docs
source/blender/blenkernel/intern/blender.c
source/blender/python/BPY_extern.h
source/blender/python/BPY_interface.c
source/blender/python/BPY_menus.c
source/blender/python/api2_2x/Sys.c
source/blender/python/api2_2x/Sys.h
source/blender/python/api2_2x/doc/Blender.py
source/blender/python/api2_2x/doc/Object.py
source/blender/python/api2_2x/doc/Registry.py
source/blender/python/api2_2x/doc/Sys.py [new file with mode: 0644]