diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-10-11 14:55:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 14:55:47 +0200 |
commit | 062650860a2b98ab9cd30229f8fddae15209485d (patch) | |
tree | 57400a6de73f10cd7586a6c27cd7ddc561aa7b52 /editor | |
parent | aad4d8648b4593b5edb479e85984730770e77c70 (diff) | |
parent | 29690f6aec8f31b0e61fb31aff32c16df98ad8c2 (diff) |
Merge pull request #32731 from codecustard/fix_concaveshape_not_selecting
Fixes concaveshape not selecting in viewport
Diffstat (limited to 'editor')
-rw-r--r-- | editor/spatial_editor_gizmos.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/spatial_editor_gizmos.cpp b/editor/spatial_editor_gizmos.cpp index 489049c543..16da2771b9 100644 --- a/editor/spatial_editor_gizmos.cpp +++ b/editor/spatial_editor_gizmos.cpp @@ -3730,6 +3730,7 @@ void CollisionShapeSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) { Ref<ConcavePolygonShape> cs2 = s; Ref<ArrayMesh> mesh = cs2->get_debug_mesh(); p_gizmo->add_mesh(mesh, false, Ref<SkinReference>(), material); + p_gizmo->add_collision_segments(cs2->get_debug_mesh_lines()); } if (Object::cast_to<RayShape>(*s)) { |