Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| #include "RAS_MeshObject.h" | #include "RAS_MeshObject.h" | ||||
| #include "RAS_Polygon.h" | #include "RAS_Polygon.h" | ||||
| #include "RAS_TexVert.h" | #include "RAS_TexVert.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_world_types.h" | #include "DNA_world_types.h" | ||||
| #include "DNA_object_force.h" | #include "DNA_object_force.h" | ||||
| #include "BKE_global.h" | |||||
| #include "BKE_main.h" | |||||
| #include "BLI_path_util.h" | |||||
| #include "BLI_string.h" | |||||
| extern "C" { | extern "C" { | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| } | } | ||||
| #define CCD_CONSTRAINT_DISABLE_LINKED_COLLISION 0x80 | #define CCD_CONSTRAINT_DISABLE_LINKED_COLLISION 0x80 | ||||
| #ifdef NEW_BULLET_VEHICLE_SUPPORT | #ifdef NEW_BULLET_VEHICLE_SUPPORT | ||||
| ▲ Show 20 Lines • Show All 2,931 Lines • ▼ Show 20 Lines | if (controller) | ||||
| { | { | ||||
| serializer->registerNameForPointer(colObj,name); | serializer->registerNameForPointer(colObj,name); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| m_dynamicsWorld->serialize(serializer); | m_dynamicsWorld->serialize(serializer); | ||||
| FILE* file = fopen(filename,"wb"); | /* create file path */ | ||||
| char path[FILE_MAX]; | |||||
| BLI_strncpy(path, filename, sizeof(path)); | |||||
| BLI_path_abs(path, G.main->name); | |||||
| BLI_ensure_extension(path, FILE_MAX, ".bullet"); | |||||
| FILE* file = fopen(path,"wb"); | |||||
panzergame: FILE *file | |||||
| if (file) | if (file) | ||||
Not Done Inline ActionsYou should not mix documentation changes with functional changes. I think it is better to do that with an extra patch. hg1: You should not mix documentation changes with functional changes. I think it is better to do… | |||||
| { | { | ||||
| fwrite(serializer->getBufferPointer(),serializer->getCurrentBufferSize(),1, file); | fwrite(serializer->getBufferPointer(),serializer->getCurrentBufferSize(),1, file); | ||||
| fclose(file); | fclose(file); | ||||
| } | } | ||||
| } | } | ||||
| struct BlenderDebugDraw : public btIDebugDraw | struct BlenderDebugDraw : public btIDebugDraw | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 667 Lines • Show Last 20 Lines | |||||
FILE *file