you can use these lines after the condition
the goal here is to create a new material using the map (texture) of your loader’s Standard material.
I don’t think cloning is working in this case. But I’m interested if a more straightforward answer exist.
const targetMaterial = new THREE.MeshBasicMaterial({ map: object.material.map });
targetMaterial.map.needsUpdate = true;
object.material = targetMaterial;
//optional but useful
object.material.map.anisotropy = renderer.capabilities.getMaxAnisotropy();