Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix Decal gizmo arrow being too tall at certain sizes in the 3D editor

Hugo Locurcio5b21ef95d2e5
diff --git a/editor/scene/3d/gizmos/decal_gizmo_plugin.cpp b/editor/scene/3d/gizmos/decal_gizmo_plugin.cpp
index 24ed0e915a5..98de350c093 100644
--- a/editor/scene/3d/gizmos/decal_gizmo_plugin.cpp
+++ b/editor/scene/3d/gizmos/decal_gizmo_plugin.cpp
@@ -121,7 +121,7 @@ void DecalGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
// Draw a directional arrow at the decal's origin.
constexpr int arrow_points = 7;
- const float arrow_length = size.y * 0.5;
+ constexpr float arrow_length = 0.5;
const Vector3 arrow[arrow_points] = {
Vector3(0, 0, -1),