auto i = find_member(textures, tag, &TextureSlot::tag);
if(i==textures.end())
{
- textures.push_back(TextureSlot(tag));
+ textures.emplace_back(tag);
i = textures.end()-1;
}
i->texture = tex;
auto i = find_member(obj.textures, Tag(n), &TextureSlot::tag);
if(i==obj.textures.end())
{
- obj.textures.push_back(TextureSlot(n));
+ obj.textures.emplace_back(n);
i = obj.textures.end()-1;
}
TextureSlot::Loader ldr(*i, n, coll);