Исправление. Сообщение об ошибке в редакторе (вызвано @tool)

This commit is contained in:
sasha80
2025-04-23 08:20:50 +03:00
parent deb28016c1
commit 97c47c6302
3 changed files with 4 additions and 1 deletions

View File

@@ -55,6 +55,8 @@ const UM_MAX: = 55.0
func _ready() -> void:
if Engine.is_editor_hint():
return
var file = FileAccess.open(settings_file, FileAccess.READ)
if not file:
log.info('Не удалось открыть файл настроек %s, использованы настройики по умолчанию' % settings_file)