cleanup (remove unnecessary scope block, unindenting by 1)
(I had this scope block before in order to release ownership of some variable so that it can be used again after the scope block, but seems like this is not necessary anymore by now)
This commit is contained in:
parent
eb094945f2
commit
4f787c33e8
1 changed files with 204 additions and 206 deletions
|
@ -840,7 +840,6 @@ fn spawn_entities(
|
||||||
|
|
||||||
// Spawn the actor
|
// Spawn the actor
|
||||||
let actor_entity;
|
let actor_entity;
|
||||||
{
|
|
||||||
let mut actor = commands.spawn_empty();
|
let mut actor = commands.spawn_empty();
|
||||||
actor.insert(actor::Actor {
|
actor.insert(actor::Actor {
|
||||||
id: state.id.clone(),
|
id: state.id.clone(),
|
||||||
|
@ -1056,7 +1055,6 @@ fn spawn_entities(
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
actor_entity = actor.id();
|
actor_entity = actor.id();
|
||||||
}
|
|
||||||
|
|
||||||
if let Some(ar_asset_name) = &state.ar_model {
|
if let Some(ar_asset_name) = &state.ar_model {
|
||||||
let mut entitycmd = commands.spawn((
|
let mut entitycmd = commands.spawn((
|
||||||
|
|
Loading…
Add table
Reference in a new issue