First try to add undo

This commit is contained in:
rewin
2024-01-09 23:24:51 +03:00
parent e0cf0efc7a
commit a7d1f80554
4 changed files with 19 additions and 2 deletions
+3 -1
View File
@@ -13,6 +13,7 @@ use bevy::{
scene::InstanceId,
};
use space_editor::prelude::PrefabMarker;
#[cfg(feature = "wasm")]
use wasm_bindgen::prelude::wasm_bindgen;
@@ -207,6 +208,7 @@ fn spawn_next_scene(
SceneRoot,
SceneElement,
SpatialBundle::default(),
PrefabMarker
))
.id();
@@ -254,7 +256,7 @@ fn tag_scene_elements(
};
if gltf.named_nodes.contains_key(&**name) {
cmd.entity(ent).insert(SceneElement);
cmd.entity(ent).insert(SceneElement).insert(PrefabMarker);
}
}
}