improve serialization based on feedback: make it easier to serialize a single object, or single shape, or single bvh. Modified Bullet/Demos/ConcaveDemo to use btSerializer to serialize the btOptimizedBvh (or optionally the trimesh+bvh) You can also serialize trimesh without BVH, use: serializer->setSerializationFlags(BT_SERIALIZE_NO_BVH);// or BT_SERIALIZE_NO_TRIANGLEINFOMAP
21 lines
635 B
CMake
21 lines
635 B
CMake
|
|
IF (BUILD_BLEND_DEMO OR INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
|
SUBDIRS(BlenderSerialize )
|
|
ENDIF()
|
|
|
|
|
|
IF(INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
|
|
|
# makesdna and HeaderGenerator are for advanced use only
|
|
# makesdna can re-generate the binary DNA representing the Bullet serialization structures
|
|
# Be very careful modifying any of this, otherwise the .bullet format becomes incompatible
|
|
|
|
SUBDIRS ( BulletFileLoader BulletWorldImporter HeaderGenerator makesdna)
|
|
|
|
ELSE(INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
|
|
|
SUBDIRS ( BulletFileLoader BulletWorldImporter )
|
|
|
|
ENDIF (INTERNAL_UPDATE_SERIALIZATION_STRUCTURES)
|
|
|