Broken textures on change

Hi,
when i try change texture on object load from obj+mtl then something is broken.
Original texture looks like this
obraz
After change looks like this
obraz

But in this example i use this some file.
In mtl file is

map_Kd textures/1006_basecolor.jpeg

and js change code

new THREE.TextureLoader().load('textures/1006_basecolor.jpeg', function (texture)
{
    element.traverse(function (child)
    {
        if(child instanceof THREE.Mesh && child.name == '1006_recovered_tool2_recovered_tool2')
        {
            child.material.map = texture;
            child.material.needsUpdate = true;
        }
    });
});

What i doing wrong ?

There is no need so set needsUpdate to true if you exchange the texture object. Demo:

Anyway, are you able to reproduce this issue with a live example? Otherwise it might be necessary to share your code as a GitHub repo so it’s possible to debug.

Fixed, i looking for this over 3 days …

 texture.wrapS = texture.wrapT = THREE.RepeatWrapping;

I don’t know what that doing but works

The documentation of Texture.wrapS and Texture.wrapT might help.