From 12b42eaab13bb81287d1e506189c29e8dee44e13 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 13 Apr 2025 21:25:32 +0200 Subject: [PATCH] Rotate the text by 180 degrees in WorldSpawner3DSpatialGizmoPlugin. --- modules/entity_spell_system/editor/ess_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/entity_spell_system/editor/ess_editor_plugin.cpp b/modules/entity_spell_system/editor/ess_editor_plugin.cpp index 1128d59b5..a9096e96b 100644 --- a/modules/entity_spell_system/editor/ess_editor_plugin.cpp +++ b/modules/entity_spell_system/editor/ess_editor_plugin.cpp @@ -150,5 +150,7 @@ void WorldSpawner3DSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) { text_mesh->set_font(EditorNode::get_singleton()->get_theme_base()->get_theme_font("main", "EditorFonts")); Transform tt; tt.set_origin(Vector3(0, 1.6, 0)); + // TODO this should be configurable + tt.basis.rotate_local(Vector3(0, 1, 0), Math_PI); p_gizmo->add_mesh(text_mesh, text_material, tt); }