From 5a89810238db6bac75a41102174298591fa303f7 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Wed, 21 Mar 2018 23:58:40 -0300 Subject: [PATCH] Fix missing const in CapsuleShapeSW::get_area (cherry picked from commit 9042ef3836925e6185165668d1b1640e35879760) --- servers/physics/shape_sw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/physics/shape_sw.h b/servers/physics/shape_sw.h index dd00e5428e0..f18d99404d6 100644 --- a/servers/physics/shape_sw.h +++ b/servers/physics/shape_sw.h @@ -238,7 +238,7 @@ public: _FORCE_INLINE_ real_t get_height() const { return height; } _FORCE_INLINE_ real_t get_radius() const { return radius; } - virtual real_t get_area() { return 4.0 / 3.0 * Math_PI * radius * radius * radius + height * Math_PI * radius * radius; } + virtual real_t get_area() const { return 4.0 / 3.0 * Math_PI * radius * radius * radius + height * Math_PI * radius * radius; } virtual PhysicsServer::ShapeType get_type() const { return PhysicsServer::SHAPE_CAPSULE; }