threejs demo bugfix
This commit is contained in:
parent
d5967b59f2
commit
0a1bdd5024
|
@ -62,6 +62,7 @@
|
|||
};
|
||||
|
||||
init();
|
||||
alert("for now, back-button (navigation) is only implemented in the AFRAME demo-implementation")
|
||||
|
||||
function init() {
|
||||
|
||||
|
@ -123,7 +124,7 @@
|
|||
|
||||
window.XRF = XRF // expose to form
|
||||
|
||||
let file = document.location.search.length > 2 ? document.location.search.substr(1) + document.location.hash : './../../assets/example.gltf#pos=1,0,4&rot=0,-30,0'
|
||||
let file = document.location.search.length > 2 ? document.location.search.substr(1) + document.location.hash : 'example.gltf#pos=1,0,4&rot=0,-30,0'
|
||||
$('#model').setAttribute("href","./../../asset/"+file)
|
||||
XRF.navigator.to( file )
|
||||
|
||||
|
|
Loading…
Reference in New Issue