Lower the vertex welding threshold, for removing duplicate/nearby vertices for soft...
authorErwin Coumans <blender@erwincoumans.com>
Mon, 27 Apr 2009 04:21:05 +0000 (04:21 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Mon, 27 Apr 2009 04:21:05 +0000 (04:21 +0000)
source/gameengine/Converter/KX_ConvertActuators.cpp
source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp
source/gameengine/Ketsji/KX_Scene.cpp
source/gameengine/Ketsji/KX_Scene.h

index eb2d0a1c4b1acc75f968083730ba945dba05b3b9..73d35a78ded33b4ed639ba1e86a48d12a5a0f22a 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "KX_BlenderSceneConverter.h"
 #include "KX_ConvertActuators.h"
-
+#include "SND_Scene.h"
 // Actuators
 //SCA logiclibrary native logicbricks
 #include "SCA_PropertyActuator.h"
index 700c5f304e75634002dc69a37699dd97d1d5e6b5..be3b758a14bb188d8dac6b7de1e787cdf5b31cc2 100644 (file)
@@ -905,7 +905,7 @@ void        KX_ConvertBulletObject( class   KX_GameObject* gameobj,
 
                                // Soft bodies require welding. Only avoid remove doubles for non-soft bodies!
                                if (objprop->m_softbody)
-                                       shapeInfo->setVertexWeldingThreshold1(0.01f); //todo: expose this to the UI
+                                       shapeInfo->setVertexWeldingThreshold1(0.0001f); //todo: expose this to the UI
 
                                bm = shapeInfo->CreateBulletShape();
                                //no moving concave meshes, so don't bother calculating inertia
index 0c26a6a7b3b6e64bffdacffcdc0632bfd4d982a5..9e67e39b2a55fce7678d5459900c79790df05780 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "KX_Scene.h"
 #include "MT_assert.h"
-
+#include "SND_Scene.h"
 #include "KX_KetsjiEngine.h"
 #include "KX_BlenderMaterial.h"
 #include "RAS_IPolygonMaterial.h"
index 83a4692f81518b8febdd512cb6d28b4140219b6d..dbba7723cc5c5978539fe066b18794df6f5dc590 100644 (file)
@@ -43,7 +43,7 @@
 #include "SG_IObject.h"
 #include "SCA_IScene.h"
 #include "MT_Transform.h"
-#include "SND_Scene.h"
+
 #include "RAS_FramingManager.h"
 #include "RAS_Rect.h"