mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Clear textures before setting new textures (#21718)
This commit is contained in:
parent
a4e4dd3966
commit
3aa82c524f
@ -178,6 +178,7 @@ PoolVector<int> BitmapFont::_get_kernings() const {
|
||||
|
||||
void BitmapFont::_set_textures(const Vector<Variant> &p_textures) {
|
||||
|
||||
textures.clear();
|
||||
for (int i = 0; i < p_textures.size(); i++) {
|
||||
Ref<Texture> tex = p_textures[i];
|
||||
ERR_CONTINUE(!tex.is_valid());
|
||||
|
Loading…
x
Reference in New Issue
Block a user