Skip to content

Fix recursive assignment of Textures and other resources

Created by: akien-mga

Fixes #24213 (closed).

Thanks for the thorough report on what resources trigger the bug @qarmin, that's very helpful.

I found a couple more (not exposed through the editor, but worth preventing anyway) by reviewing the results of cd scene/resources && rg -g'*.cpp' "void.*set.*Ref" for occurrences with a Ref<T> where T is the same type as the calling class.

There might be other such case in other folders, but resources were definitely the main ones at risk of recursive assignment.

Merge request reports

Loading