Commit: 00d0d9677dcf37354340b9fcb3228ce163f357fd
Author: Ines Almeida
Date:   Fri Jun 20 23:45:43 2014 +0100
https://developer.blender.org/rB00d0d9677dcf37354340b9fcb3228ce163f357fd

Game Engine Scene Graph - documentation cleanup

===================================================================

M       source/gameengine/Converter/BL_BlenderDataConversion.cpp
M       source/gameengine/Ketsji/KX_GameObject.cpp
M       source/gameengine/SceneGraph/SG_IObject.h

===================================================================

diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp 
b/source/gameengine/Converter/BL_BlenderDataConversion.cpp
index 1be94dc..4e79c12 100644
--- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp
+++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp
@@ -92,7 +92,6 @@
 #include "RAS_TexMatrix.h"
 #include "RAS_ICanvas.h"
 #include "RAS_MaterialBucket.h"
-//#include "KX_BlenderPolyMaterial.h"
 #include "RAS_Polygon.h"
 #include "RAS_TexVert.h"
 #include "RAS_BucketManager.h"
@@ -109,7 +108,6 @@
 #include "BL_SkinDeformer.h"
 #include "BL_MeshDeformer.h"
 #include "KX_SoftBodyDeformer.h"
-//#include "BL_ArmatureController.h"
 #include "BLI_utildefines.h"
 #include "BLI_listbase.h"
 #include "BlenderWorldInfo.h"
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp 
b/source/gameengine/Ketsji/KX_GameObject.cpp
index 9e8e58e..d95bcd4 100644
--- a/source/gameengine/Ketsji/KX_GameObject.cpp
+++ b/source/gameengine/Ketsji/KX_GameObject.cpp
@@ -155,8 +155,7 @@ KX_GameObject::~KX_GameObject()
        //if (m_sumoObj)
        //      delete m_sumoObj;
        delete m_pClient_info;
-       //if (m_pSGNode)
-       //      delete m_pSGNode;
+
        if (m_pSGNode)
        {
                // must go through controllers and make sure they will not use 
us anymore
diff --git a/source/gameengine/SceneGraph/SG_IObject.h 
b/source/gameengine/SceneGraph/SG_IObject.h
index d271ddd..85b3bd6 100644
--- a/source/gameengine/SceneGraph/SG_IObject.h
+++ b/source/gameengine/SceneGraph/SG_IObject.h
@@ -102,20 +102,22 @@ typedef bool (*SG_RescheduleUpdateCallback)(
 
 
 /**
- * SG_Callbacks hold 2 call backs to the outside world.
- * The first is meant to be called when objects are replicated.
+ * SG_ReplicationNewCallback is meant to be called when objects are replicated.
  * And allows the outside world to synchronize external objects
  * with replicated nodes and their children.
- * The second is called when a node is destroyed and again
- * is their for synchronization purposes
- * These callbacks may both be NULL. 
- * The efficacy of this approach has not been proved some 
- * alternatives might be to perform all replication and destruction
- * externally. 
- * To define a class interface rather than a simple function
- * call back so that replication information can be transmitted from 
+ *
+ * SG_DestructionNewCallback is called when a node is destroyed and again
+ * is for synchronization purposes
+ *
+ * These callbacks may be NULL.
+ * The efficacy of this approach has not been proved.
+ * Some alternatives might be
+ * 1 - to perform all replication and destruction externally.
+ * 2 - to define a class interface rather than a simple function
+ * callback so that replication information can be transmitted from
  * parent->child. 
  */
+
 struct SG_Callbacks
 {
        SG_Callbacks(

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to