|
@@ -2569,9 +2569,12 @@ void ShapeCast3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
|
|
|
|
|
const Ref<StandardMaterial3D> material = shapecast->is_enabled() ? shapecast->get_debug_material() : get_material("shape_material_disabled");
|
|
|
|
|
|
- p_gizmo->add_lines(shapecast->get_debug_shape_vertices(), material);
|
|
|
p_gizmo->add_lines(shapecast->get_debug_line_vertices(), material);
|
|
|
|
|
|
+ if (shapecast->get_shape().is_valid()) {
|
|
|
+ p_gizmo->add_lines(shapecast->get_debug_shape_vertices(), material);
|
|
|
+ }
|
|
|
+
|
|
|
p_gizmo->add_collision_segments(shapecast->get_debug_line_vertices());
|
|
|
}
|
|
|
|