add error cube, to show when model is missing

This commit is contained in:
yuni 2024-03-20 21:25:47 +01:00
parent ac0a57b9b1
commit 82b7a32286
3 changed files with 3 additions and 1 deletions

BIN
assets/models/error.glb Normal file

Binary file not shown.

View file

@ -23,6 +23,8 @@ actor -2265 10 0 "suit"
alive "yes" alive "yes"
pronoun "it" pronoun "it"
actor 0 0 0 "error"
chat "error" chat "error"
name "ERROR" name "ERROR"
msg 0 "INIT" "EXIT" "Unspecified conversation ID" msg 0 "INIT" "EXIT" "Unspecified conversation ID"

View file

@ -25,7 +25,7 @@ fn asset_name_to_path(name: &str) -> &'static str {
"asteroid1" => ASSET_ASTEROID1, "asteroid1" => ASSET_ASTEROID1,
"asteroid2" => ASSET_ASTEROID2, "asteroid2" => ASSET_ASTEROID2,
"pizzeria" => "models/pizzeria.glb#Scene0", "pizzeria" => "models/pizzeria.glb#Scene0",
_ => "external/alien.glb#Scene0", _ => "models/error.glb#Scene0",
} }
} }