A fix for the missing pad1 bug: henceforth, world->pad1 shall be known as
authorChris Want <cwant@ualberta.ca>
Wed, 31 Dec 2003 04:00:26 +0000 (04:00 +0000)
committerChris Want <cwant@ualberta.ca>
Wed, 31 Dec 2003 04:00:26 +0000 (04:00 +0000)
world->gameEngine (a la tuhopuu).

source/blender/makesdna/DNA_world_types.h
source/gameengine/Converter/KX_BlenderSceneConverter.cpp

index fd367369bd5c75ea54abda70af0f6322b5efc20a..bbe1fa6af194558aa8dbfebfc1b5e103b0e9930d 100644 (file)
@@ -92,6 +92,9 @@ typedef struct World {
        
        short dofsta, dofend, dofmin, dofmax;
 
+       int physicsEngine;
+       int pad;
+
        struct Ipo *ipo;
        struct MTex *mtex[8];
 
index d3a67abecfc0e821cb644b8b1e301c827a78872e..15100cc3a009e8cded1dcf46668c28116816b394 100644 (file)
@@ -183,7 +183,7 @@ void KX_BlenderSceneConverter::ConvertScene(const STR_String& scenename,
                if (blenderscene->world)
                {
                        
-                       switch (blenderscene->world->pad1)
+                       switch (blenderscene->world->physicsEngine)
                        {
                                
                        case 1: