Skip to content

Commit 48b34bd

Browse files
committed
Removed version check
1 parent 606d99f commit 48b34bd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

addons/gaea/editor/editor_settings.gd

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,8 @@ static func _get_shortcut(category: String, action_key: String, shortcut_key: Ke
192192
var editor_interface = Engine.get_singleton("EditorInterface")
193193
var shortcut_path = StringName(SHORTCUT_BASE % [category, action_key.to_snake_case()])
194194

195-
if Engine.get_version_info().hex >= 0x40600:
196-
if editor_interface.get_editor_settings().has_shortcut(shortcut_path):
197-
return editor_interface.get_editor_settings().get_shortcut(shortcut_path)
195+
if editor_interface.get_editor_settings().has_shortcut(shortcut_path):
196+
return editor_interface.get_editor_settings().get_shortcut(shortcut_path)
198197

199198
var shortcut = Shortcut.new()
200199
var key_event = InputEventKey.new()
@@ -204,7 +203,6 @@ static func _get_shortcut(category: String, action_key: String, shortcut_key: Ke
204203
key_event.shift_pressed = shortcut_key & KeyModifierMask.KEY_MASK_SHIFT
205204
shortcut.events = [key_event]
206205

207-
if Engine.get_version_info().hex >= 0x40600:
208-
editor_interface.get_editor_settings().add_shortcut(shortcut_path, shortcut)
206+
editor_interface.get_editor_settings().add_shortcut(shortcut_path, shortcut)
209207

210208
return shortcut

0 commit comments

Comments
 (0)