[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56353] trunk/blender/source/blender/ blenloader/intern/versioning_250.c: BGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66.

Mitchell Stokes mogurijin at gmail.com
Sun Apr 28 08:13:24 CEST 2013


Revision: 56353
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56353
Author:   moguri
Date:     2013-04-28 06:13:24 +0000 (Sun, 28 Apr 2013)
Log Message:
-----------
BGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66. Reported and fixed by HG1.

Modified Paths:
--------------
    trunk/blender/source/blender/blenloader/intern/versioning_250.c

Modified: trunk/blender/source/blender/blenloader/intern/versioning_250.c
===================================================================
--- trunk/blender/source/blender/blenloader/intern/versioning_250.c	2013-04-27 23:42:42 UTC (rev 56352)
+++ trunk/blender/source/blender/blenloader/intern/versioning_250.c	2013-04-28 06:13:24 UTC (rev 56353)
@@ -90,6 +90,7 @@
 #include "BKE_sequencer.h"
 #include "BKE_texture.h"
 #include "BKE_sound.h"
+#include "BKE_sca.h"
 
 #include "NOD_socket.h"
 
@@ -2268,9 +2269,14 @@
 			for (act = ob->actuators.first; act; act = act->next) {
 				if (act->type == ACT_STEERING) {
 					bSteeringActuator *stact = act->data;
-					if (stact->facingaxis == 0) {
-						stact->facingaxis = 1;
+					if (stact == NULL) {//HG1
+						init_actuator(act);
 					}
+					else {
+						if (stact->facingaxis == 0) {
+							stact->facingaxis = 1;
+						}
+					}
 				}
 			}
 		}




More information about the Bf-blender-cvs mailing list