Blake
November 13, 2021, 9:58pm
1
Heya, on the awesome weapons demo, the one linked to from babylonjs.com , pressing run causes the error “Cannot delete property 'scene' of #<Window>
”. This happens both on version 5 and on version 4.2.
Babylon.js Playground
Removing line 5, which creates a global scene object, fixes the issue for both versions.
https://www.babylonjs-playground.com/#I6V1ST#209
1 Like
sebavan
November 14, 2021, 8:06pm
2
Yup it is mostly how the PG code has been build so it would fail on subsequent runs.
Could you share where you took the demo link from ? so that we could update it ?
1 Like
Blake
November 14, 2021, 8:42pm
3
It’s from babylonjs.com , the second demo link in the demos section at the bottom of the page.
sebavan
November 14, 2021, 8:50pm
4
Perfect lets check with @PirateJC to update it
1 Like
@Blake , thanks for finding this, reporting it, and fixing it!
I’ve fixed the link on the Babylon homepage!
Should be all good now!
Thanks!
3 Likes