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:
yuni 2024-07-12 14:22:56 +02:00
parent eb094945f2
commit 4f787c33e8

View file

@ -840,7 +840,6 @@ fn spawn_entities(
// Spawn the actor
let actor_entity;
{
let mut actor = commands.spawn_empty();
actor.insert(actor::Actor {
id: state.id.clone(),
@ -1056,7 +1055,6 @@ fn spawn_entities(
});
}
actor_entity = actor.id();
}
if let Some(ar_asset_name) = &state.ar_model {
let mut entitycmd = commands.spawn((