Fix wasm build

This commit is contained in:
rewin
2024-01-11 23:09:30 +03:00
parent 9d01036cd2
commit bb102221ef
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ pub enum Lifecycle {
pub enum Action {
Camera(CameraMotion),
Selection(Selection),
ToggleDebug,
ToggleDebug
}
#[derive(Clone, Copy)]
+5
View File
@@ -157,6 +157,11 @@ pub fn start_viewer(
},
);
// Only for registering components for undo
use space_editor::prelude::space_undo::AppAutoUndo;
app.auto_reflected_undo::<Transform>();
#[cfg(feature = "wasm")]
wasm::initialize();