matterport-dl
matterport-dl copied to clipboard
Offline stops loading at 50%
I had to make some changes to get my offline to work properly as it was getting stuck on the loading screen. Below is what I did to correct it
sed -i 's|https://static.matterport.com/webgl|webgl|g' showcase.js
sed -i 's|https://static.matterport.com/webgl|webgl|g' showcase-internal.js
While I am not python coder here is my attempt at updating code that can be added to the python (below) and on line 536 adding "patchShowcaseWebGL()"
def patchShowcaseWebGL():
f = open("js/showcase-internal.js", "r", encoding="utf8")
content = f.read()
f.close()
content = re.sub(r'https://static.matterport.com/webgl', 'webgl', content)
f = open("js/showcase-internal.js", "w", encoding="utf8")
f.write(content)
f.close()
f = open("js/showcase.js", "r", encoding="utf8")
content = f.read()
f.close()
content = re.sub(r'https://static.matterport.com/webgl', 'webgl', content)
f = open("js/showcase.js", "w", encoding="utf8")
f.write(content)
f.close()
just updated it check it out here
This should be fixed now, please test again on master and let us know if not