From 186f2af440cbb0ed037a77465ec6a9e226f32657 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 10 Dec 2024 14:34:22 +0000 Subject: [PATCH] bugfix: safer if --- src/3rd/js/three/xrf/href.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/3rd/js/three/xrf/href.js b/src/3rd/js/three/xrf/href.js index 3c81c53..d8a7016 100644 --- a/src/3rd/js/three/xrf/href.js +++ b/src/3rd/js/three/xrf/href.js @@ -40,7 +40,7 @@ xrf.frag.href = function(v, opts){ let click = mesh.userData.XRF.href.exec = (e) => { - if( !mesh.material || !mesh.material.visible ) return // ignore invisible nodes + if( !mesh.material || !(mesh.material && mesh.material.visible) ) return // ignore invisible nodes // update our values to the latest value (might be edited) let URI = xrf.URI.template( mesh.userData.href, xrf.URI.vars.__object )