From b991b32458cdccb19a203e7ba4ca6b5780aad6cb Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Sat, 25 Apr 2009 12:20:59 +0000 Subject: BGE mesh modifiers: fix view frustrum culling for mesh with modifiers. Update the bounding box based on mesh extent after applying the modifiers. --- source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp') diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp index f4f8ec9f91b..700c5f304e7 100644 --- a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp +++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp @@ -759,6 +759,13 @@ void KX_ConvertODEEngineObject(KX_GameObject* gameobj, //printf("update\n"); return true;//?? } + virtual bool UpdateBuckets(void) + { + // this is to update the mesh slots outside the rasterizer, + // no need to do it for this deformer, it's done in any case in Apply() + return false; + } + virtual RAS_Deformer *GetReplica() { KX_SoftBodyDeformer* deformer = new KX_SoftBodyDeformer(*this); -- cgit v1.2.3