VR: Vorschaubilder aus dem Import, Fehler ohne Dialog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
83af25b6fb
commit
5e98535a0a
2 changed files with 6 additions and 0 deletions
|
|
@ -157,6 +157,9 @@ static func thumb_path(oid: String) -> String:
|
|||
## einfach nur kein Bild).
|
||||
static func load_thumb(oid: String, size_px := THUMB_DISPLAY_PX) -> Texture2D:
|
||||
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):
|
||||
return null
|
||||
var img := Image.load_from_file(path)
|
||||
|
|
|
|||
|
|
@ -1453,6 +1453,9 @@ func _save_to(path: String) -> 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 := ""
|
||||
for e in errors:
|
||||
lines += "• %s\n" % str(e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue