-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Fix run_system for adapter systems wrapping exclusive systems
#18406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,18 +110,12 @@ where | |
|
|
||
| #[inline] | ||
| unsafe fn run_unsafe( | ||
| &mut self, | ||
| _input: SystemIn<'_, Self>, | ||
| _world: UnsafeWorldCell, | ||
| ) -> Self::Out { | ||
| panic!("Cannot run exclusive systems with a shared World reference"); | ||
| } | ||
|
|
||
| fn run_without_applying_deferred( | ||
| &mut self, | ||
| input: SystemIn<'_, Self>, | ||
| world: &mut World, | ||
| world: UnsafeWorldCell, | ||
| ) -> Self::Out { | ||
| // SAFETY: `is_exclusive` returned true, so the caller ensured we had `&mut World` access | ||
|
||
| let world = unsafe { world.world_mut() }; | ||
| world.last_change_tick_scope(self.system_meta.last_run, |world| { | ||
| #[cfg(feature = "trace")] | ||
| let _span_guard = self.system_meta.system_span.enter(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.