[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern text.c

Willian Padovani Germano wgermano at superig.com.br
Fri Jan 6 21:15:18 CET 2006


ianwill (Willian Padovani Germano) 2006/01/06 21:15:18 CET

  Modified files:
    blender/source/blender/blenkernel/intern text.c 
  
  Log:
  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.
  
  Revision  Changes    Path
  1.19      +3 -2      blender/source/blender/blenkernel/intern/text.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/text.c.diff?r1=1.18&r2=1.19&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list