[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19924] trunk/blender/source: Running 2. 48rc on my system segfaults when starting the game engine, only on the release, not for my own builds.

Campbell Barton ideasman42 at gmail.com
Sat Apr 25 14:58:07 CEST 2009


Revision: 19924
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19924
Author:   campbellbarton
Date:     2009-04-25 14:58:07 +0200 (Sat, 25 Apr 2009)

Log Message:
-----------
Running 2.48rc on my system segfaults when starting the game engine, only on the release, not for my own builds.

Setting the SDL video driver to dummy prevents the crash, this is recommended in the SDL docs if your not using the video driver.

Modified Paths:
--------------
    trunk/blender/source/creator/creator.c
    trunk/blender/source/gameengine/PyDoc/KX_GameObject.py

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2009-04-25 12:20:59 UTC (rev 19923)
+++ trunk/blender/source/creator/creator.c	2009-04-25 12:58:07 UTC (rev 19924)
@@ -538,6 +538,7 @@
 		BLI_where_is_temp( btempdir, 1 ); /* call after loading the .B.blend so we can read U.tempdir */
 
 #ifndef DISABLE_SDL
+		setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */
 #ifdef __linux__
 		/* On linux the default SDL driver dma often would not play
 		 * use alsa if none is set */

Modified: trunk/blender/source/gameengine/PyDoc/KX_GameObject.py
===================================================================
--- trunk/blender/source/gameengine/PyDoc/KX_GameObject.py	2009-04-25 12:20:59 UTC (rev 19923)
+++ trunk/blender/source/gameengine/PyDoc/KX_GameObject.py	2009-04-25 12:58:07 UTC (rev 19924)
@@ -159,7 +159,7 @@
 		@param orn: a rotation matrix specifying the new rotation.
 		@note: When using this matrix with Blender.Mathutils.Matrix() types, it will need to be transposed.
 		"""
-	def alignAxisToVect(vect, axis):
+	def alignAxisToVect(vect, axis, factor):
 		"""
 		Aligns any of the game object's axis along the given vector.
 		
@@ -170,6 +170,8 @@
 					- 0: X axis
 					- 1: Y axis
 					- 2: Z axis (default) 
+		@type factor: float
+		@param factor: Only rotate a feaction of the distance to the target vector (0.0 - 1.0)
 		"""
 	def getAxisVect(vect):
 		"""





More information about the Bf-blender-cvs mailing list