From 4219485a827ff37dc25c72786c8786962e5b55f2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 2 Mar 2022 01:10:18 +0100 Subject: Always register the Smooth Trimesh Collision project setting This ensures the project setting never disappears from the editor, even if the current physics engine is GodotPhysics. This also adds documentation for the Smooth Trimesh Collision project setting. --- modules/bullet/shape_bullet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/bullet/shape_bullet.cpp') diff --git a/modules/bullet/shape_bullet.cpp b/modules/bullet/shape_bullet.cpp index 77a583ad86..cf6bcb6c85 100644 --- a/modules/bullet/shape_bullet.cpp +++ b/modules/bullet/shape_bullet.cpp @@ -422,7 +422,7 @@ void ConcavePolygonShapeBullet::setup(Vector p_faces) { meshShape = bulletnew(btBvhTriangleMeshShape(shapeInterface, useQuantizedAabbCompression)); - if (GLOBAL_DEF("physics/3d/smooth_trimesh_collision", false)) { + if (GLOBAL_GET("physics/3d/smooth_trimesh_collision")) { btTriangleInfoMap *triangleInfoMap = new btTriangleInfoMap(); btGenerateInternalEdgeInfo(meshShape, triangleInfoMap); } -- cgit v1.2.3