* remove unused member of KX_Scene - m_objecttree
authorCampbell Barton <ideasman42@gmail.com>
Sun, 2 Aug 2009 23:53:53 +0000 (23:53 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 2 Aug 2009 23:53:53 +0000 (23:53 +0000)
* implicit declaration of getenv in glutil.c

source/blender/src/glutil.c
source/gameengine/Ketsji/KX_Scene.cpp
source/gameengine/Ketsji/KX_Scene.h

index bb9b1be08b6cbf2ff44012e27bee3dee87867cf2..0772478be2d30a817584ddb47fd370cc9847a249 100644 (file)
 #include <math.h>
 #include <string.h>
 
+/* getenv only */
+#ifdef __linux__
+#include <stdlib.h>
+#endif
+
 #include "MEM_guardedalloc.h"
 
 #include "DNA_vec_types.h"
index caab0f38db95178266416ec1743b8be6d404a667..0aeccbcaaad74dbb775a6339f8d61359e8fbc586 100644 (file)
@@ -1577,11 +1577,6 @@ void     KX_Scene::SetGravity(const MT_Vector3& gravity)
        GetPhysicsEnvironment()->setGravity(gravity[0],gravity[1],gravity[2]);
 }
 
-void KX_Scene::SetNodeTree(SG_Tree* root)
-{
-       m_objecttree = root;
-}
-
 void KX_Scene::SetSceneConverter(class KX_BlenderSceneConverter* sceneConverter)
 {
        m_sceneConverter = sceneConverter;
index c4f868f6a02d24d2b78c1eabc5b26cb9196a90b0..09fad7040a8bbfbb97fccab87554ec32c3436a58 100644 (file)
@@ -119,10 +119,6 @@ protected:
                                                                                // the Qlist is for objects that needs to be rescheduled
                                                                                // for updates after udpate is over (slow parent, bone parent)
 
-       /**
-        *  The tree of objects in the scene.
-        */
-       SG_Tree*                        m_objecttree;
 
        /**
         * The set of cameras for this scene