diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-23 11:26:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-23 11:26:39 +0400 |
commit | 69ddc5eb99d36c7d2cf86a7537a3784d3c72777e (patch) | |
tree | 2346cd60891c2015fc59a30576d0c99b072712cc /source/blender/editors/physics/rigidbody_world.c | |
parent | 4544c234f5baf386eae9ffd98994f9905a285aaa (diff) |
make bullet optional again
Diffstat (limited to 'source/blender/editors/physics/rigidbody_world.c')
-rw-r--r-- | source/blender/editors/physics/rigidbody_world.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/physics/rigidbody_world.c b/source/blender/editors/physics/rigidbody_world.c index 068f8decef5..5ab8e7697c5 100644 --- a/source/blender/editors/physics/rigidbody_world.c +++ b/source/blender/editors/physics/rigidbody_world.c @@ -40,7 +40,9 @@ #include "BLI_blenlib.h" #include "BLI_math.h" -#include "RBI_api.h" +#ifdef WITH_BULLET +# include "RBI_api.h" +#endif #include "BKE_context.h" #include "BKE_depsgraph.h" @@ -170,8 +172,9 @@ static int rigidbody_world_export_exec(bContext *C, wmOperator *op) } RNA_string_get(op->ptr, "filepath", path); +#ifdef WITH_BULLET RB_dworld_export(rbw->physics_world, path); - +#endif return OPERATOR_FINISHED; } |