revert to old three (for now)

pull/95/head
Michael 2021-07-12 15:57:32 +02:00
rodzic a3a35965c0
commit cfe3446513
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -27,12 +27,12 @@
<script src="src/FileSaver.min.js?version=2019-06-27"></script>
<!-- three.js -->
<script type="text/javascript" src="stitchcode/three-124/three.min.js"></script>
<script type="text/javascript" src="stitchcode/three-newer/three.js"></script>
<script type="text/javascript" src="stitchcode/threee/CanvasRenderer.js"></script>
<script type="text/javascript" src="stitchcode/threee/THREE.MeshLine.js"></script>
<script type="text/javascript" src="stitchcode/threee/OrbitControls.old.js"></script>
<script type="text/javascript" src="stitchcode/threee/Detector.js"></script>
<script type="text/javascript" src="stitchcode/three-124/LegacyJSONLoader.js"></script>
<!--<script type="text/javascript" src="stitchcode/three-124/LegacyJSONLoader.js"></script>-->
<!-- turtlestitch additions -->
<script type="text/javascript" src="stitchcode/turtleShepherd.js"></script>

Wyświetl plik

@ -2739,7 +2739,8 @@ StageMorph.prototype.initTurtle = function() {
if (typeof this.turtle.loaded === 'undefined') {
var loader = new THREE.LegacyJSONLoader();
var loader = new THREE.JSONLoader();
//var loader = new THREE.LegacyJSONLoader(); // for new version!
loader.load('stitchcode/assets/turtle.js',
function ( geometry, materials ) {