Fix building w/o bullet
authorCampbell Barton <ideasman42@gmail.com>
Wed, 12 Dec 2018 19:38:55 +0000 (06:38 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 12 Dec 2018 19:38:55 +0000 (06:38 +1100)
source/blender/blenkernel/intern/collection.c

index 33287d5a2f8a0765617b0fb2aa506dc45cfa7987..c13cdb0ca0cc347ea113ea4167d0a718579efd58 100644 (file)
@@ -517,7 +517,9 @@ static bool collection_object_add(Main *bmain, Collection *collection, Object *o
        }
 
        if ((flag & LIB_ID_CREATE_NO_MAIN) == 0) {
+#ifdef WITH_BULLET
                BKE_rigidbody_main_collection_object_add(bmain, collection, ob);
+#endif
        }
 
        return true;