Clear textures before setting new textures (#21718)

This commit is contained in:
Alexandre LittleWhite Laurent 2018-09-16 16:49:46 +02:00
parent a4e4dd3966
commit 3aa82c524f

View file

@ -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());