fix(spatial): fix model nodes not despawning properly

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-09-02 22:47:00 +02:00
parent 6f113a9ec4
commit b6524e90e1
2 changed files with 3 additions and 20 deletions

View File

@@ -261,6 +261,7 @@ fn gen_model_parts(
);
}
_ = model.parts.set(parts);
model.spatial.set_entity(model.bevy_scene_entity.get().unwrap().0);
}
}