From d03decb9839633c2448ebb6d5f76baa885a9abf2 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 14 Apr 2025 18:16:36 +0200 Subject: [PATCH] Fix the spawn position line height in WorldSpawner3DSpatialGizmoPlugin. --- modules/entity_spell_system/editor/ess_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/entity_spell_system/editor/ess_editor_plugin.cpp b/modules/entity_spell_system/editor/ess_editor_plugin.cpp index 498fc7450..be0768fe5 100644 --- a/modules/entity_spell_system/editor/ess_editor_plugin.cpp +++ b/modules/entity_spell_system/editor/ess_editor_plugin.cpp @@ -211,8 +211,8 @@ void WorldSpawner3DSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) { for (int i = 0; i < spawn_positions.size(); ++i) { Vector2 p = spawn_positions[i]; - lines.push_back(Vector3(p.x, -extents.z, p.y)); - lines.push_back(Vector3(p.x, extents.z, p.y)); + lines.push_back(Vector3(p.x, -extents.y, p.y)); + lines.push_back(Vector3(p.x, extents.y, p.y)); } p_gizmo->add_lines(lines, area_spawn_pos_material);