-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples showcase: use patches instead of sed for wasm hacks (#10601)
# Objective - Fix the asset hack for wasm examples so that they work on the website - Use patches instead of sed for wasm hacks so that it fails explicitly when they need to be updated
- Loading branch information
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs | ||
index 004f87a85..3c8656efc 100644 | ||
--- a/crates/bevy_asset/src/lib.rs | ||
+++ b/crates/bevy_asset/src/lib.rs | ||
@@ -105,7 +105,7 @@ impl Default for AssetPlugin { | ||
fn default() -> Self { | ||
Self { | ||
mode: AssetMode::Unprocessed, | ||
- file_path: Self::DEFAULT_UNPROCESSED_FILE_PATH.to_string(), | ||
+ file_path: "/assets/examples".to_string(), | ||
processed_file_path: Self::DEFAULT_PROCESSED_FILE_PATH.to_string(), | ||
watch_for_changes_override: None, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs | ||
index 7b5c75d38..8e9404b93 100644 | ||
--- a/crates/bevy_window/src/window.rs | ||
+++ b/crates/bevy_window/src/window.rs | ||
@@ -245,9 +245,9 @@ impl Default for Window { | ||
transparent: false, | ||
focused: true, | ||
window_level: Default::default(), | ||
- fit_canvas_to_parent: false, | ||
+ fit_canvas_to_parent: true, | ||
prevent_default_event_handling: true, | ||
- canvas: None, | ||
+ canvas: Some("#bevy".to_string()), | ||
window_theme: None, | ||
visible: true, | ||
} |