Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix CSG module breaking on disable_physics_3d=yes builds

smix80e56b860db81
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp
index 9dcf9db49ee..fffbec32eea 100644
--- a/modules/csg/csg_shape.cpp
+++ b/modules/csg/csg_shape.cpp
@@ -206,6 +206,7 @@ void CSGShape3D::set_collision_priority(real_t p_priority) {
real_t CSGShape3D::get_collision_priority() const {
return collision_priority;
}
+#endif // PHYSICS_3D_DISABLED
void CSGShape3D::set_autosmooth(bool p_smooth) {
autosmooth = p_smooth;
@@ -226,8 +227,6 @@ float CSGShape3D::get_smoothing_angle() const {
return smoothing_angle;
}
-#endif // PHYSICS_3D_DISABLED
-
bool CSGShape3D::is_root_shape() const {
return !parent_shape;
}