mirror of
https://github.com/Relintai/texture_packer.git
synced 2024-11-14 10:17:21 +01:00
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:
parent
1e0da8f335
commit
9cbc2ac85b
@ -96,11 +96,6 @@ void TextureMerger::set_textures(const Vector<Variant> &textures) {
|
|||||||
if (texture.is_valid() && !_packer->contains_texture(texture)) {
|
if (texture.is_valid() && !_packer->contains_texture(texture)) {
|
||||||
Ref<AtlasTexture> tex = _packer->add_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;
|
texture_added = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user