[SOLVED] Clone on material is not more a function

Hi guys,

        for (var i = 0; i < meshInstances.length - 1; i++) {
            meshInstances[i].material = meshInstances[i].material.clone();
            this._materials[i] = meshInstances[i].material;
            meshInstances[i].material.update();
        }

cloning material now throw errors : Uncaught TypeError: this[pname].clone is not a function.

Thank you

This should be fixed now. Let me know if it’s all working for you.

Sorry for the inconvenience!

1 Like