diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-11 02:07:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-11 02:13:05 +0300 |
commit | a49fdbcc674fe80af2f6cacc8c23d18a5fdbbd97 (patch) | |
tree | d30a7ef9a2094e235286d8cdf81b804e84b83290 /source/blender | |
parent | 8c8e9b55864e9cf261da5f156d2866236b212a88 (diff) |
Fix building w/o bullet
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenloader/CMakeLists.txt | 4 | ||||
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_rigidbody.c | 6 |
3 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/blenloader/CMakeLists.txt b/source/blender/blenloader/CMakeLists.txt index 49987cb860c..5edeb8ccbbb 100644 --- a/source/blender/blenloader/CMakeLists.txt +++ b/source/blender/blenloader/CMakeLists.txt @@ -88,6 +88,10 @@ if(WITH_CODEC_FFMPEG) add_definitions(-DWITH_FFMPEG) endif() +if(WITH_BULLET) + add_definitions(-DWITH_BULLET) +endif() + if(WITH_ALEMBIC) list(APPEND INC ../alembic diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index b05be55e8fa..188372ab438 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -2490,6 +2490,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } +#ifdef WITH_BULLET /* Ensure we get valid rigidbody object/constraint data in relevant collections' objects. */ for (Scene *scene = bmain->scene.first; scene; scene = scene->id.next) { RigidBodyWorld *rbw = scene->rigidbody_world; @@ -2501,6 +2502,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) BKE_rigidbody_objects_collection_validate(scene, rbw); BKE_rigidbody_constraints_collection_validate(scene, rbw); } +#endif } { diff --git a/source/blender/makesrna/intern/rna_rigidbody.c b/source/blender/makesrna/intern/rna_rigidbody.c index 15046928ce7..dfdbed0dafd 100644 --- a/source/blender/makesrna/intern/rna_rigidbody.c +++ b/source/blender/makesrna/intern/rna_rigidbody.c @@ -151,17 +151,19 @@ static void rna_RigidBodyWorld_split_impulse_set(PointerRNA *ptr, bool value) static void rna_RigidBodyWorld_objects_collection_update(Main *bmain, Scene *scene, PointerRNA *ptr) { +#ifdef WITH_BULLET RigidBodyWorld *rbw = (RigidBodyWorld *)ptr->data; - BKE_rigidbody_objects_collection_validate(scene, rbw); +#endif rna_RigidBodyWorld_reset(bmain, scene, ptr); } static void rna_RigidBodyWorld_constraints_collection_update(Main *bmain, Scene *scene, PointerRNA *ptr) { +#ifdef WITH_BULLET RigidBodyWorld *rbw = (RigidBodyWorld *)ptr->data; - BKE_rigidbody_constraints_collection_validate(scene, rbw); +#endif rna_RigidBodyWorld_reset(bmain, scene, ptr); } |