diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-03-04 10:12:03 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2019-03-04 10:12:03 -0300 |
commit | 9dd9737cb43dc871661945adcc1784756f28a118 (patch) | |
tree | 3d68e3fb2ada50fa88248a083028ddb966a10e82 /scene/3d | |
parent | b63c506ad8499ff5ac1fd8f76296112a1274717d (diff) |
Warn about plane shape usage, closes #26503
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/collision_shape.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/collision_shape.cpp b/scene/3d/collision_shape.cpp index daee291ba3..ac33e2b714 100644 --- a/scene/3d/collision_shape.cpp +++ b/scene/3d/collision_shape.cpp @@ -124,6 +124,10 @@ String CollisionShape::get_configuration_warning() const { return TTR("A shape must be provided for CollisionShape to function. Please create a shape resource for it!"); } + if (shape->is_class("PlaneShape")) { + return TTR("Plane shapes don't work well and will be removed in future versions. Please don't use them."); + } + return String(); } |