Исправление. Сообщение об ошибке в редакторе (вызвано @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

@@ -194,7 +194,6 @@ common/enable_object_picking=false
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
shader_compiler/shader_cache/strip_debug=true
anti_aliasing/quality/msaa_2d=1
quality/driver/fallback_to_gles2=true
[shader_globals]

View File

@@ -100,6 +100,8 @@ const image_load_proc_names = {
func _ready():
if Engine.is_editor_hint():
return
$canvas.connect('mouse_entered', func(): _rollover = true)
$canvas.connect('mouse_exited', func(): _rollover = false)
_on_resize()

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)