From 6c91c3f9d52a71227826b51a13d7b70e6581a095 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 22 Mar 2022 00:40:56 +0100 Subject: [PATCH] Added a hack to the editor icon builder script, because it capitalized The new int classes wrong. (Vector2i was capitalized Vector2I). --- editor/icons/editor_icons_builders.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/editor/icons/editor_icons_builders.py b/editor/icons/editor_icons_builders.py index ce6b9a868..17aba7cb4 100644 --- a/editor/icons/editor_icons_builders.py +++ b/editor/icons/editor_icons_builders.py @@ -50,7 +50,13 @@ def make_editor_icons_action(target, source, env): fname = str(f) - icon_name = os.path.basename(fname)[5:-4].title().replace("_", "") + icon_name = os.path.basename(fname)[5:-4].title() + + #hack + icon_name = icon_name.replace("Vector2I", "Vector2i") + icon_name = icon_name.replace("Vector3I", "Vector3i") + + icon_name = icon_name.replace("_", "") # some special cases if icon_name in ["Int", "Bool", "Float"]: icon_name = icon_name.lower()