diff --git a/chapter-03/03.02-animate-cube.html b/chapter-03/03.02-animate-cube.html index f9dde27..f81913f 100644 --- a/chapter-03/03.02-animate-cube.html +++ b/chapter-03/03.02-animate-cube.html @@ -126,6 +126,7 @@ .to({ x: end }, time ) .easing(TWEEN.Easing.Linear.None) .onStart(function () { + isTweening = true; cube.position.y += -widht / 2; cube.position.z += -widht / 2; cubeGeometry.applyMatrix(new THREE.Matrix4().makeTranslation(0, widht / 2, widht / 2)); @@ -317,4 +318,4 @@ - \ No newline at end of file +