1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Fix recursive assignment of Textures and BitMapFont

Fixes #24213.
This commit is contained in:
Rémi Verschelde
2019-01-28 14:56:06 +01:00
parent 70689ebffd
commit 402cfa983d
2 changed files with 6 additions and 0 deletions

View File

@@ -497,6 +497,7 @@ Size2 Font::get_string_size(const String &p_string) const {
}
void BitmapFont::set_fallback(const Ref<BitmapFont> &p_fallback) {
ERR_FAIL_COND(p_fallback == this);
fallback = p_fallback;
}