mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Change RID_Owner::get_owned_list.
This commit is contained in:
parent
2d3bdcac35
commit
1a70a06a43
11 changed files with 74 additions and 102 deletions
|
|
@ -57,9 +57,7 @@ void RendererCompositorStorage::compositor_effect_free(RID p_rid) {
|
|||
ERR_FAIL_NULL(effect);
|
||||
|
||||
// Remove this RID from any compositor that uses it.
|
||||
List<RID> compositor_rids;
|
||||
compositor_owner.get_owned_list(&compositor_rids);
|
||||
for (const RID &compositor_rid : compositor_rids) {
|
||||
for (const RID &compositor_rid : compositor_owner.get_owned_list()) {
|
||||
Compositor *compositor = compositor_owner.get_or_null(compositor_rid);
|
||||
if (compositor) {
|
||||
compositor->compositor_effects.erase(p_rid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue