mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-19 07:53:25 +00:00
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:
+1
-1
@@ -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
@@ -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) =
|
||||
|
||||
Reference in New Issue
Block a user