Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Converter/BL_BlenderDataConversion.cpp
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| #include "BL_ModifierDeformer.h" | #include "BL_ModifierDeformer.h" | ||||
| #include "BL_ShapeDeformer.h" | #include "BL_ShapeDeformer.h" | ||||
| #include "BL_SkinDeformer.h" | #include "BL_SkinDeformer.h" | ||||
| #include "BL_MeshDeformer.h" | #include "BL_MeshDeformer.h" | ||||
| #include "KX_SoftBodyDeformer.h" | #include "KX_SoftBodyDeformer.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BlenderWorldInfo.h" | #include "KX_WorldInfo.h" | ||||
| #include "KX_KetsjiEngine.h" | #include "KX_KetsjiEngine.h" | ||||
| #include "KX_BlenderSceneConverter.h" | #include "KX_BlenderSceneConverter.h" | ||||
| /* This little block needed for linking to Blender... */ | /* This little block needed for linking to Blender... */ | ||||
| #ifdef WIN32 | #ifdef WIN32 | ||||
| #include "BLI_winstuff.h" | #include "BLI_winstuff.h" | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 2,227 Lines • ▼ Show 20 Lines | #define BL_CONVERTBLENDEROBJECT_SINGLE \ | ||||
| set<KX_GameObject*>::iterator gobit; | set<KX_GameObject*>::iterator gobit; | ||||
| for (gobit = convertedlist.begin(); gobit != convertedlist.end(); gobit++) | for (gobit = convertedlist.begin(); gobit != convertedlist.end(); gobit++) | ||||
| (*gobit)->Release(); | (*gobit)->Release(); | ||||
| convertedlist.clear(); | convertedlist.clear(); | ||||
| sumolist->Release(); | sumolist->Release(); | ||||
| // convert world | // convert world | ||||
| KX_WorldInfo* worldinfo = new BlenderWorldInfo(blenderscene, blenderscene->world); | KX_WorldInfo* worldinfo = new KX_WorldInfo(blenderscene, blenderscene->world); | ||||
| converter->RegisterWorldInfo(worldinfo); | converter->RegisterWorldInfo(worldinfo); | ||||
| kxscene->SetWorldInfo(worldinfo); | kxscene->SetWorldInfo(worldinfo); | ||||
| //create object representations for obstacle simulation | //create object representations for obstacle simulation | ||||
| KX_ObstacleSimulation* obssimulation = kxscene->GetObstacleSimulation(); | KX_ObstacleSimulation* obssimulation = kxscene->GetObstacleSimulation(); | ||||
| if (obssimulation) | if (obssimulation) | ||||
| { | { | ||||
| for ( i=0;i<objectlist->GetCount();i++) | for ( i=0;i<objectlist->GetCount();i++) | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||