BGE: fix bug with rigid body joint constraint target name: skip OB letter.
authorBenoit Bolsee <benoit.bolsee@online.be>
Tue, 22 Dec 2009 18:39:42 +0000 (18:39 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Tue, 22 Dec 2009 18:39:42 +0000 (18:39 +0000)
source/gameengine/Converter/BL_BlenderDataConversion.cpp

index 31616fdec15766d5944e7a9237cad54004b8b65e..4c5960554950edb0f5b95b449780ed5c251709f3 100644 (file)
@@ -2572,7 +2572,7 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
 
                                                if (dat->tar)
                                                {
-                                                       KX_GameObject *gotar=getGameOb(dat->tar->id.name,sumolist);
+                                                       KX_GameObject *gotar=getGameOb(dat->tar->id.name+2,sumolist);
                                                        if (gotar && gotar->GetPhysicsController())
                                                                physctr2 = (PHY_IPhysicsController*) gotar->GetPhysicsController()->GetUserData();
                                                }