Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
changeTexture = (textureId, texturePath) => {
if (this.currentMesh) {
ImagesEngine
.loadSingleTexture(textureId, texturePath)
.then((texture) => {
this.currentMesh.setTexture(textureId);
});
}
}