HI
Any one know why this button dont work for glb files?
If i swich my mesh format to pietro.babylon it is working but pietro.glb work only for “hide” function.
////////////////////
BABYLON.SceneLoader.ImportMesh("", “./”, “pietro.glb”, scene, function (myMeshesTwo) {
//////////////////
var b_pietro = document.createElement(‘buttons’);
b_pietro.id = “pietro”;
b_pietro.textContent = “Pietro”;
buttonbox.appendChild(b_pietro);
b_pietro.onclick = function() {
// Show/Hide myMeshTwo
for (mesh of myMeshesTwo)
mesh.setEnabled((mesh.isEnabled() ? false : true));
}