From ad251da2940d894fe4af90fef139baf8afc87fe4 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Tue, 16 Sep 2014 19:56:26 -0700 Subject: [PATCH] disable btInMemorySerializer by default --- src/LinearMath/btSerializer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LinearMath/btSerializer.h b/src/LinearMath/btSerializer.h index d22b04574..00b1e8f71 100644 --- a/src/LinearMath/btSerializer.h +++ b/src/LinearMath/btSerializer.h @@ -674,6 +674,8 @@ public: ///The btInMemorySerializer is experimental and only suitable in a few cases. ///The btInMemorySerializer takes a shortcut and can be useful to create a deep-copy ///of objects. There will be a demo on how to use the btInMemorySerializer. +#ifdef ENABLE_INMEMORY_SERIALIZER + struct btInMemorySerializer : public btDefaultSerializer { btHashMap m_uid2ChunkPtr; @@ -843,6 +845,7 @@ struct btInMemorySerializer : public btDefaultSerializer } }; +#endif //ENABLE_INMEMORY_SERIALIZER #endif //BT_SERIALIZER_H