Added a hack to the editor icon builder script, because it capitalized The new int classes wrong. (Vector2i was capitalized Vector2I).

This commit is contained in:
Relintai 2022-03-22 00:40:56 +01:00
parent 84955fab68
commit 6c91c3f9d5

View File

@ -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()