diff options
| author | Rémi Verschelde | 2017-09-12 12:55:53 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-12 12:55:53 +0200 |
| commit | aabbd00284640a4789f96702c134ea40b11b402e (patch) | |
| tree | 8363659a6551644b0d89401681e2909d5451a119 /servers/physics/shape_sw.cpp | |
| parent | c5e0e31f5106d7d91dc478af1f86740c74cea824 (diff) | |
| parent | b2a38854fdde296fd2d7da139a29b23a18ab494d (diff) | |
| download | godot-aabbd00284640a4789f96702c134ea40b11b402e.tar.gz godot-aabbd00284640a4789f96702c134ea40b11b402e.tar.zst godot-aabbd00284640a4789f96702c134ea40b11b402e.zip | |
Diffstat (limited to 'servers/physics/shape_sw.cpp')
| -rw-r--r-- | servers/physics/shape_sw.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/physics/shape_sw.cpp b/servers/physics/shape_sw.cpp index 184518808..80eeff93d 100644 --- a/servers/physics/shape_sw.cpp +++ b/servers/physics/shape_sw.cpp @@ -954,6 +954,9 @@ Vector3 ConvexPolygonShapeSW::get_moment_of_inertia(real_t p_mass) const { void ConvexPolygonShapeSW::_setup(const Vector<Vector3> &p_vertices) { Error err = QuickHull::build(p_vertices, mesh); + if (err != OK) + ERR_PRINT("Failed to build QuickHull"); + Rect3 _aabb; for (int i = 0; i < mesh.vertices.size(); i++) { |
