Blender Git Loki
Git Commits -> Revision b1c6fe7
Revision b1c6fe7 by Willian Padovani Germano (master) January 6, 2006, 20:15 (GMT) |
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. |
Commit Details:
Full Hash: b1c6fe73374bda9574d3d005daeb6670976d863b
SVN Revision: 6331
Parent Commit: 37495aa
Lines Changed: +2, -1
1 Modified Path:
/source/blender/blenkernel/intern/text.c (+2, -1) (Diff)