mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 17:11:30 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
parent
71c40ff4da
commit
900c676b02
84 changed files with 782 additions and 782 deletions
|
|
@ -5464,8 +5464,8 @@ bool RendererSceneRenderRD::free(RID p_rid) {
|
|||
LightInstance *light_instance = light_instance_owner.get_or_null(p_rid);
|
||||
|
||||
//remove from shadow atlases..
|
||||
for (RBSet<RID>::Element *E = light_instance->shadow_atlases.front(); E; E = E->next()) {
|
||||
ShadowAtlas *shadow_atlas = shadow_atlas_owner.get_or_null(E->get());
|
||||
for (const RID &E : light_instance->shadow_atlases) {
|
||||
ShadowAtlas *shadow_atlas = shadow_atlas_owner.get_or_null(E);
|
||||
ERR_CONTINUE(!shadow_atlas->shadow_owners.has(p_rid));
|
||||
uint32_t key = shadow_atlas->shadow_owners[p_rid];
|
||||
uint32_t q = (key >> ShadowAtlas::QUADRANT_SHIFT) & 0x3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue