summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-06 16:45:07 +0200
committerGitHub <noreply@github.com>2021-05-06 16:45:07 +0200
commit6e621441ca0e562fb010c86d88e1d3a8a9ed0fd8 (patch)
treed24b50bac78ecbde39e5eeb00226125f84f12f2a /scene
parent7b8a86421174d572bf59cf680b17a7ceb660bc50 (diff)
parent60b70c77e05ac75f25af110c107cc5d97c35fa89 (diff)
Merge pull request #45607 from Calinou/improve-editor-theme
Improve the editor theme
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 00056cd912..d10ce584b7 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -1672,7 +1672,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
float line_width = 1.0;
#ifdef TOOLS_ENABLED
- line_width *= EDSCALE;
+ line_width *= Math::round(EDSCALE);
#endif
Point2i parent_pos = Point2i(parent_ofs - cache.arrow->get_width() / 2, p_pos.y + label_h / 2 + cache.arrow->get_height() / 2) - cache.offset + p_draw_ofs;