From 6c3c1ceef1111e58a94d566bf1909240fe498a62 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 29 Oct 2018 15:53:10 +0100 Subject: [PATCH] wip #809 @1:10 --- js/libs/fluidbook/fluidbook.3dflip.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.3dflip.js b/js/libs/fluidbook/fluidbook.3dflip.js index 99b70216..689c1a42 100644 --- a/js/libs/fluidbook/fluidbook.3dflip.js +++ b/js/libs/fluidbook/fluidbook.3dflip.js @@ -47,10 +47,6 @@ Fluidbook3DFlip.prototype = { this.geometryScale = 3; - this.stats = new Stats(); - this.stats.showPanel(0); - document.body.appendChild(this.stats.dom); - this.container = $(this.jcontainer).get(0); this.init3D('performancesTest'); @@ -221,7 +217,6 @@ Fluidbook3DFlip.prototype = { this.bendForceMultiplicator = 1.2; } this.bend = new Bend(0, this.bendOffset, this.bendAngle * 0.0174533); - this.bend.constraint = -1; this.modifier.reset(); this.modifier.addModifier(this.bend); @@ -430,16 +425,6 @@ Fluidbook3DFlip.prototype = { animate: function (next) { var $this = this; - if (this.stats === undefined) { - try { - window.requestAnimationFrame(this.animate); - } catch (e) { - setTimeout(function () { - $this.animate(true); - }, 100); - } - return; - } if (next) { requestAnimationFrame(function () { @@ -447,7 +432,6 @@ Fluidbook3DFlip.prototype = { }); } - this.stats.update(); var d = ((720 + this._pageRotation) % 360); this.plane.rotation.y = d * this.deg2rad; this.renderer.render(this.scene, this.camera); -- 2.39.5