VR: Vorschaubilder aus dem Import, Fehler ohne Dialog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
slyphax 2026-11-01 20:01:17 +01:00
parent 83af25b6fb
commit 5e98535a0a
2 changed files with 6 additions and 0 deletions

View file

@ -157,6 +157,9 @@ static func thumb_path(oid: String) -> String:
## einfach nur kein Bild). ## einfach nur kein Bild).
static func load_thumb(oid: String, size_px := THUMB_DISPLAY_PX) -> Texture2D: static func load_thumb(oid: String, size_px := THUMB_DISPLAY_PX) -> Texture2D:
var path := thumb_path(oid) var path := thumb_path(oid)
# In der exportierten App liegt nur die importierte Fassung.
if OS.has_feature("android"):
return load(path) as Texture2D if ResourceLoader.exists(path) else null
if not FileAccess.file_exists(path): if not FileAccess.file_exists(path):
return null return null
var img := Image.load_from_file(path) var img := Image.load_from_file(path)

View file

@ -1453,6 +1453,9 @@ func _save_to(path: String) -> void:
func _show_errors(title: String, errors: Array) -> void: func _show_errors(title: String, errors: Array) -> void:
if vr_host:
_set_status("%s %s" % [title, str(errors[0]) if not errors.is_empty() else ""], true)
return
var lines := "" var lines := ""
for e in errors: for e in errors:
lines += "• %s\n" % str(e) lines += "• %s\n" % str(e)