blender/source/blender
Willian Padovani Germano b1c6fe7337 Bug #3658 reported by Daniel Holtz (thanks):
http://projects.blender.org/tracker/?func=detail&atid=125&aid=3658&group_id=9

Running scripts from command line in bg mode:
blender -b -P myscript.py
crashes Blender 2.40.

The problem is in add_text() in text.c: G.scene can be NULL at this
point (in bg mode). Added a check:

line 323:
	if (G.scene) /* can be NULL (bg mode) */
		BLI_convertstringcode(str, G.sce, G.scene->r.cfra);

The text being added with add_text() in this particular case is the
script filename specified at the command prompt, so it should be ok to skip
BLI_convertstringcode. Feel free to disagree, though.
2006-01-06 20:15:18 +00:00
..
avi updates to the OS X build system : 2005-08-04 16:05:28 +00:00
blenkernel Bug #3658 reported by Daniel Holtz (thanks): 2006-01-06 20:15:18 +00:00
blenlib Fix: reading library files with option "Relative Paths" set, whilst library 2005-12-11 22:03:04 +00:00
blenloader This fixes two things: 2005-12-21 16:18:59 +00:00
blenpluginapi Code cleanup: using defines in texture.c for whether a function returns 2005-11-19 18:24:32 +00:00
ftfont big warning hunt commit 2005-03-09 19:45:59 +00:00
imbuf Some compilers don't like it when you initialize the fields in a 2005-12-26 21:43:35 +00:00
img - Imagepaint code cleanup: 2005-09-16 20:17:09 +00:00
include Moved Object.Join() into a function of an object. 2006-01-03 02:35:45 +00:00
makesdna #3706 (patch tracker) 2006-01-06 13:33:20 +00:00
python Scene.c - Removed redraw when in non UI mode. 2006-01-06 01:53:26 +00:00
quicktime updates to the OS X build system : 2005-08-04 16:05:28 +00:00
radiosity More properly coded version for adding edges... now only do_versions() 2005-09-22 17:52:41 +00:00
readblenfile Added prototypes for some stubs to shut gcc up ;) 2005-08-16 20:21:43 +00:00
render Bugfix #3673 2006-01-03 20:06:08 +00:00
renderconverter Todo #2574 2006-01-06 12:37:45 +00:00
src #3706 (patch tracker) 2006-01-06 13:33:20 +00:00
verify Support for building bf-blender under windows with gcc (huge thanks to 2003-05-24 20:04:37 +00:00
yafray fix for bug #3193, winmat was not calculated properly because of 2005-10-25 09:30:54 +00:00
Makefile This commit removes the glue from Blender, and with it 2004-04-16 15:55:16 +00:00
SConscript Added #!/usr/bin/python standard script identifier to the start of SConscript files. 2004-05-16 13:07:20 +00:00