Исправление. Сообщение об ошибке в редакторе (вызвано @tool)
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user