BGE: repair soft body - include this in RC2 please
authorBenoit Bolsee <benoit.bolsee@online.be>
Sat, 9 May 2009 16:59:25 +0000 (16:59 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Sat, 9 May 2009 16:59:25 +0000 (16:59 +0000)
source/gameengine/Converter/BL_BlenderDataConversion.cpp

index 3c93265c40bca8be59849ec52cb17ea8eb058920..1d2b275cab9aed8ff1e1789a0b2f8a7a2e0a0067 100644 (file)
@@ -2121,7 +2121,8 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
                                //tf.Add(gameobj->GetSGNode());
                                
                                gameobj->NodeUpdateGS(0);
-                               gameobj->AddMeshUser();
+                               //move to after finishing everything so that soft body deformer is included
+                               //gameobj->AddMeshUser();
                
                        }
                        else
@@ -2311,7 +2312,8 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
                                                                //tf.Add(gameobj->GetSGNode());
                                                                
                                                                gameobj->NodeUpdateGS(0);
-                                                               gameobj->AddMeshUser();
+                                                               //move to after finishing everything so that soft body deformer is included
+                                                               //gameobj->AddMeshUser();
                                                        }
                                                        else
                                                        {
@@ -2665,6 +2667,7 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
        {
                KX_GameObject* gameobj = static_cast<KX_GameObject*>(objectlist->GetValue(i));
                gameobj->ResetState();
+               gameobj->AddMeshUser();
        }
 
 #endif //CONVERT_LOGIC