yay the shared material problem is fixed

Now on to getting that intro dissolving!
main
Elijah C. Voigt 2 years ago
parent 3275582176
commit 7fd38dab26

@ -1236,10 +1236,7 @@ fn setup_dissolve_materials(
/// The animation is like a 'beam me up scotty' sorta thing. /// The animation is like a 'beam me up scotty' sorta thing.
fn capture_piece( fn capture_piece(
events: Query<Entity, (With<Display3d>, Added<game::Captured>)>, events: Query<Entity, (With<Display3d>, Added<game::Captured>)>,
mut query: Query< mut query: Query<(&mut Transform, &Side), (With<Display3d>, With<game::Captured>)>,
(&mut Visibility, &mut Transform, &Side),
(With<Display3d>, With<game::Captured>),
>,
dissolving: Query<Entity, With<Dissolving>>, dissolving: Query<Entity, With<Dissolving>>,
mut state: Local<Option<game::CaptureFlow>>, mut state: Local<Option<game::CaptureFlow>>,
mut commands: Commands, mut commands: Commands,
@ -1269,7 +1266,7 @@ fn capture_piece(
} }
} }
game::CaptureFlow::Store(entity) => { game::CaptureFlow::Store(entity) => {
let (mut v, mut t, side) = query let (mut t, side) = query
.get_mut(entity) .get_mut(entity)
.expect("Visibility and Transform of captured piece"); .expect("Visibility and Transform of captured piece");

Loading…
Cancel
Save