meta errors fix

This commit is contained in:
rewin
2024-04-03 21:40:47 +03:00
parent 6500031f6b
commit cbd17cdca6
5 changed files with 107 additions and 5 deletions
File diff suppressed because one or more lines are too long
+7
View File
@@ -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)}",
}
+9 -4
View File
@@ -1,9 +1,7 @@
use std::time::Duration;
use bevy::{
app::{AppExit, ScheduleRunnerPlugin},
core_pipeline::Skybox,
prelude::*,
app::{AppExit, ScheduleRunnerPlugin}, asset::AssetMetaCheck, core_pipeline::Skybox, prelude::*
};
use bevy_web_asset::WebAssetPlugin;
use space_editor::prelude::{EditorEvent, EditorPrefabPath};
@@ -53,6 +51,8 @@ pub fn start_headless(
frame_delta: 1.0 / (fps as f32),
});
app.insert_resource(AssetMetaCheck::Never);
app.add_plugins((
ScheduleRunnerPlugin::run_loop(Duration::from_secs_f64(1.0 / fps as f64)),
WebAssetPlugin,
@@ -61,9 +61,14 @@ pub fn start_headless(
primary_window: None,
exit_condition: bevy::window::ExitCondition::DontExit,
close_when_requested: true,
}).set(AssetPlugin {
mode: AssetMode::Unprocessed,
..default()
}),
ScreenShotPlugin,
CommonPlugins.build().disable::<WorldGridPlugin>(),
CommonPlugins.build()
.disable::<WorldGridPlugin>()
.disable::<crate::UiLayerPlugin>(),
));
match mode {
+2 -1
View File
@@ -197,6 +197,7 @@ fn check_loading(
&& **r_scene_state == SceneState::Loading
&& *frames_without_loading > 100
{
info!("Transition to active");
st_next.set(SceneState::Active);
return;
}
@@ -211,7 +212,7 @@ fn check_loading(
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| {
if let Some((load_state, dep_load_state, _)) = asset_server.get_load_states(h.id()) {
+4
View File
@@ -30,6 +30,10 @@ pub struct InspectorPlugin;
impl Plugin for InspectorPlugin {
fn build(&self, app: &mut App) {
#[cfg(not(feature = "wasm"))]
return;
if let Some(state) = app.world.get_resource::<StudioMode>() {
if *state == StudioMode::Headless {
return;