kopia lustrzana https://github.com/backface/turtlestitch
revert to old three (for now)
rodzic
a3a35965c0
commit
cfe3446513
|
@ -27,12 +27,12 @@
|
||||||
<script src="src/FileSaver.min.js?version=2019-06-27"></script>
|
<script src="src/FileSaver.min.js?version=2019-06-27"></script>
|
||||||
|
|
||||||
<!-- three.js -->
|
<!-- 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/CanvasRenderer.js"></script>
|
||||||
<script type="text/javascript" src="stitchcode/threee/THREE.MeshLine.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/OrbitControls.old.js"></script>
|
||||||
<script type="text/javascript" src="stitchcode/threee/Detector.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 -->
|
<!-- turtlestitch additions -->
|
||||||
<script type="text/javascript" src="stitchcode/turtleShepherd.js"></script>
|
<script type="text/javascript" src="stitchcode/turtleShepherd.js"></script>
|
||||||
|
|
|
@ -2739,7 +2739,8 @@ StageMorph.prototype.initTurtle = function() {
|
||||||
|
|
||||||
if (typeof this.turtle.loaded === 'undefined') {
|
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',
|
loader.load('stitchcode/assets/turtle.js',
|
||||||
function ( geometry, materials ) {
|
function ( geometry, materials ) {
|
||||||
|
|
Ładowanie…
Reference in New Issue