Upgrade to Bevy 0.19 and harden editor workflows
CI / Format, lint, test, build (push) Has been cancelled
CI / Format, lint, test, build (push) Has been cancelled
This commit is contained in:
1 parent
3f85d25cc7
commit
b5e561904c
204 files changed
+6972
-29907
No files matched your search
@@ -282,10 +282,8 @@ pub fn spawn_many_with_history(
|
||||
if snapshots.is_empty() {
|
||||
return Vec::new();
|
||||
}
|
||||
let mut sibling_index = next_sibling_index(world, None);
|
||||
for snapshot in &mut snapshots {
|
||||
for (sibling_index, snapshot) in (next_sibling_index(world, None)..).zip(snapshots.iter_mut()) {
|
||||
snapshot.hierarchy_sibling_index = sibling_index;
|
||||
sibling_index += 1;
|
||||
}
|
||||
let entities: Vec<Entity> = snapshots
|
||||
.iter()
|
||||
@@ -1489,11 +1487,14 @@ fn capture_gizmo_transform_edits(world: &mut World) {
|
||||
Entity,
|
||||
&Transform,
|
||||
&transform_gizmo_bevy::prelude::GizmoTarget,
|
||||
Option<&crate::viewport::brush_edit::BrushElementGizmo>,
|
||||
)>();
|
||||
let active = query
|
||||
.iter(world)
|
||||
.find(|(_, _, target)| target.is_active())
|
||||
.map(|(entity, transform, _)| (entity, *transform));
|
||||
.find(|(_, _, target, brush_element_gizmo)| {
|
||||
brush_element_gizmo.is_none() && target.is_active()
|
||||
})
|
||||
.map(|(entity, transform, _, _)| (entity, *transform));
|
||||
|
||||
let start_group =
|
||||
active.map(|(entity, transform)| selected_transforms(world, &selection, entity, transform));
|
||||
|
||||
Reference in new issue
Block a user