[Bf-blender-cvs] [2ba3214a214] master: UI/Physics: Show error enabling Rigid Body if compiled without Bullet

Julian Eisel noreply at git.blender.org
Mon May 25 16:57:26 CEST 2020


Commit: 2ba3214a214418606222624c76dff94fbf10faac
Author: Julian Eisel
Date:   Mon May 25 16:26:22 2020 +0200
Branches: master
https://developer.blender.org/rB2ba3214a214418606222624c76dff94fbf10faac

UI/Physics: Show error enabling Rigid Body if compiled without Bullet

Would just silently fail, which is confusing.
Should only impact custom builds.

===================================================================

M	source/blender/blenkernel/intern/rigidbody.c

===================================================================

diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c
index 4d37c2ea931..c9911d2cf85 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -2116,6 +2116,7 @@ void BKE_rigidbody_ensure_local_object(Main *bmain, Object *ob)
 
 bool BKE_rigidbody_add_object(Main *bmain, Scene *scene, Object *ob, int type, ReportList *reports)
 {
+  BKE_report(reports, RPT_ERROR, "Compiled without Bullet physics engine");
   return false;
 }



More information about the Bf-blender-cvs mailing list