mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-25 08:30:24 +00:00
meta errors fix
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"space_undo::ChangeChainSettings": "{\"space_undo::ChangeChainSettings\":(max_change_chain_size:200)}",
|
||||||
|
"space_editor_ui::settings::NewWindowSettings": "{\"space_editor_ui::settings::NewWindowSettings\":(new_tab:SameNode)}",
|
||||||
|
"space_editor_ui::settings::GameModeSettings": "{\"space_editor_ui::settings::GameModeSettings\":(mode:Game3D)}",
|
||||||
|
"space_persistence::PersistenceSettings": "{\"space_persistence::PersistenceSettings\":(load_on_startup:true,save_on_close:true)}",
|
||||||
|
"space_editor_ui::sizing::Sizing": "{\"space_editor_ui::sizing::Sizing\":(icon:Regular,gizmos:Gizmos,text:14.0)}",
|
||||||
|
}
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
app::{AppExit, ScheduleRunnerPlugin},
|
app::{AppExit, ScheduleRunnerPlugin}, asset::AssetMetaCheck, core_pipeline::Skybox, prelude::*
|
||||||
core_pipeline::Skybox,
|
|
||||||
prelude::*,
|
|
||||||
};
|
};
|
||||||
use bevy_web_asset::WebAssetPlugin;
|
use bevy_web_asset::WebAssetPlugin;
|
||||||
use space_editor::prelude::{EditorEvent, EditorPrefabPath};
|
use space_editor::prelude::{EditorEvent, EditorPrefabPath};
|
||||||
@@ -53,6 +51,8 @@ pub fn start_headless(
|
|||||||
frame_delta: 1.0 / (fps as f32),
|
frame_delta: 1.0 / (fps as f32),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.insert_resource(AssetMetaCheck::Never);
|
||||||
|
|
||||||
app.add_plugins((
|
app.add_plugins((
|
||||||
ScheduleRunnerPlugin::run_loop(Duration::from_secs_f64(1.0 / fps as f64)),
|
ScheduleRunnerPlugin::run_loop(Duration::from_secs_f64(1.0 / fps as f64)),
|
||||||
WebAssetPlugin,
|
WebAssetPlugin,
|
||||||
@@ -61,9 +61,14 @@ pub fn start_headless(
|
|||||||
primary_window: None,
|
primary_window: None,
|
||||||
exit_condition: bevy::window::ExitCondition::DontExit,
|
exit_condition: bevy::window::ExitCondition::DontExit,
|
||||||
close_when_requested: true,
|
close_when_requested: true,
|
||||||
|
}).set(AssetPlugin {
|
||||||
|
mode: AssetMode::Unprocessed,
|
||||||
|
..default()
|
||||||
}),
|
}),
|
||||||
ScreenShotPlugin,
|
ScreenShotPlugin,
|
||||||
CommonPlugins.build().disable::<WorldGridPlugin>(),
|
CommonPlugins.build()
|
||||||
|
.disable::<WorldGridPlugin>()
|
||||||
|
.disable::<crate::UiLayerPlugin>(),
|
||||||
));
|
));
|
||||||
|
|
||||||
match mode {
|
match mode {
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ fn check_loading(
|
|||||||
&& **r_scene_state == SceneState::Loading
|
&& **r_scene_state == SceneState::Loading
|
||||||
&& *frames_without_loading > 100
|
&& *frames_without_loading > 100
|
||||||
{
|
{
|
||||||
|
info!("Transition to active");
|
||||||
st_next.set(SceneState::Active);
|
st_next.set(SceneState::Active);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -211,7 +212,7 @@ fn check_loading(
|
|||||||
|
|
||||||
let mut not_loaded_count = 0;
|
let mut not_loaded_count = 0;
|
||||||
|
|
||||||
info!("Loading {} assets", loading_queue.queue.len());
|
// info!("Loading {} assets", loading_queue.queue.len());
|
||||||
|
|
||||||
loading_queue.queue.retain(|h| {
|
loading_queue.queue.retain(|h| {
|
||||||
if let Some((load_state, dep_load_state, _)) = asset_server.get_load_states(h.id()) {
|
if let Some((load_state, dep_load_state, _)) = asset_server.get_load_states(h.id()) {
|
||||||
|
|||||||
@@ -30,6 +30,10 @@ pub struct InspectorPlugin;
|
|||||||
|
|
||||||
impl Plugin for InspectorPlugin {
|
impl Plugin for InspectorPlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
|
|
||||||
|
#[cfg(not(feature = "wasm"))]
|
||||||
|
return;
|
||||||
|
|
||||||
if let Some(state) = app.world.get_resource::<StudioMode>() {
|
if let Some(state) = app.world.get_resource::<StudioMode>() {
|
||||||
if *state == StudioMode::Headless {
|
if *state == StudioMode::Headless {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user