-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Align Scene::write_to_world_with
to match DynamicScene::write_to_world_with
#13855
base: main
Are you sure you want to change the base?
Conversation
@alice-i-cecile Anything I can do on my end to move this pr along? |
Can you swap this to a more descriptive title and then post about this in |
Scene::write_to_world_with
to match DynamicScene::write_to_world_with
@NthTensor You approved the last version - do you have a chance to take a look at this updated one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too familiar with this part of the scene stuff but I think the change makes sense. It also seems to be in line with the call to Self::spawn_dynamic_internal
a few lines up.
The alien_cake_addict
example also seems to work properly again.
Objective
Fixes a regression in previously merged but then reverted pr that aligns lower-level
Scene
API with that inDynamicScene
. Please look at the original pr for more details.The problem was
spawn_sync_internal
is used inspawn_queued_scenes
. Since instance creation was moved up a level we need to make sure we add a specific instance toSceneSpawner::spawned_instances
when usingspawn_sync_internal
(just like we do forDynamicScene
).Please look at the last commit when reviewing.
Testing
alien_cake_addict
anddeferred_rendering
examples look as expected.Changelog
Changed
Scene::write_to_world_with
to takeentity_map
as an argument and no longer return anInstanceInfo
Migration Guide
Scene::write_to_world_with
no longer returns anInstanceInfo
.Before
After