diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-04-28 10:13:24 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-04-28 10:13:24 +0400 |
commit | 46dad61e50e7943bcc9b96ecca36afea9f4be53c (patch) | |
tree | d2a026ca574273144df3b4bd7db31012d7b9a954 /source/blender/blenloader | |
parent | 1cc52288d5e747227b1f0e099e397c09ba1c6fb0 (diff) |
BGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66. Reported and fixed by HG1.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_250.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/versioning_250.c b/source/blender/blenloader/intern/versioning_250.c index 034857d7c54..859df2f64a1 100644 --- a/source/blender/blenloader/intern/versioning_250.c +++ b/source/blender/blenloader/intern/versioning_250.c @@ -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,8 +2269,13 @@ void blo_do_versions_250(FileData *fd, Library *lib, Main *main) 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; + } } } } |