Add Generic Mannequin (#27)

Just adding the mannequin from Scott into the main branch so that it can
be used.

- added the mannequin.gltf
- also now requiring the file extention when selecting file to load.
This is to add flexability with file selection. Let me know if this is a
bad idea.
This commit is contained in:
Brooks Palin
2024-01-18 15:41:56 -07:00
committed by GitHub
parent 1687bfd6ed
commit 4b19c76272
6 changed files with 836 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ use studio::{StudioMode, ViewportSize};
fn main() {
// Edit the arguments here to change the default startup scene or skybox
let mut app = studio::start_internal(
"base-human-female",
"Mannequin.gltf",
"gum_trees_4k",
"", // ignored for non-WASM
"Storyteller Studio",
+1 -1
View File
@@ -193,7 +193,7 @@ fn init_scene_loading(
) {
if let Some(id) = er.read().last() {
let name = &**id;
let path = format!("gltf/{name}.glb");
let path = format!("gltf/{name}");
// Avoid trying to re-load this scene if it's already active
if let Some(active_scene_path) =