summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-03 17:37:36 +0200
committerGitHub <noreply@github.com>2020-07-03 17:37:36 +0200
commit0148a62d890e0d559bec86fcac14404c81742899 (patch)
treeb86448a21ab3af0d4edf0bcbf81011791dd7ab1c /editor/plugins
parentcf97137681d416d1e1123275a03b91e42d4b174f (diff)
parentdc446203beef386e8666f00a39b7b91a96505083 (diff)
Merge pull request #40091 from Xrayez/polygon-no-mouse-found
Provide warning when using polygon shapes in `CollisionShape2D` node
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/collision_shape_2d_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/collision_shape_2d_editor_plugin.cpp b/editor/plugins/collision_shape_2d_editor_plugin.cpp
index 596629f8e8..105ac24950 100644
--- a/editor/plugins/collision_shape_2d_editor_plugin.cpp
+++ b/editor/plugins/collision_shape_2d_editor_plugin.cpp
@@ -242,9 +242,11 @@ void CollisionShape2DEditor::commit_handle(int idx, Variant &p_org) {
} break;
case CONCAVE_POLYGON_SHAPE: {
+ // Cannot be edited directly, use CollisionPolygon2D instead.
} break;
case CONVEX_POLYGON_SHAPE: {
+ // Cannot be edited directly, use CollisionPolygon2D instead.
} break;
case LINE_SHAPE: {