Removed the texture_added signal/vmethod calls from TextureMerger::set_textures, because has_method always returns false in that context.

This commit is contained in:
Relintai 2019-10-23 17:17:45 +02:00
parent 1e0da8f335
commit 9cbc2ac85b

View File

@ -96,11 +96,6 @@ void TextureMerger::set_textures(const Vector<Variant> &textures) {
if (texture.is_valid() && !_packer->contains_texture(texture)) {
Ref<AtlasTexture> tex = _packer->add_texture(texture);
if (has_method("_texture_added"))
call("_texture_added", tex);
emit_signal("texture_added", tex);
texture_added = true;
}
}