mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Use correct terminology for a NonSend
run condition panic (#7841)
# Objective There is a panic that occurs when creating a run condition that accesses `NonSend` resources, but it refers to them as 'thread-local' resources instead. ## Solution Correct the terminology.
This commit is contained in:
parent
998e983bac
commit
9e6ad4607f
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ fn new_condition<M>(condition: impl Condition<M>) -> BoxedCondition {
|
||||||
let condition_system = IntoSystem::into_system(condition);
|
let condition_system = IntoSystem::into_system(condition);
|
||||||
assert!(
|
assert!(
|
||||||
condition_system.is_send(),
|
condition_system.is_send(),
|
||||||
"Condition `{}` accesses thread-local resources. This is not currently supported.",
|
"Condition `{}` accesses `NonSend` resources. This is not currently supported.",
|
||||||
condition_system.name()
|
condition_system.name()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue