From 8ac46baffe44f03a080e57b2acf8a4e776d21d37 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Fri, 22 Feb 2019 20:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/helper/ViewHelper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ShadowEditor.Web/src/helper/ViewHelper.js b/ShadowEditor.Web/src/helper/ViewHelper.js index 7bb015ef..5a6c336c 100644 --- a/ShadowEditor.Web/src/helper/ViewHelper.js +++ b/ShadowEditor.Web/src/helper/ViewHelper.js @@ -171,6 +171,10 @@ ViewHelper.prototype.onMouseDown = function (event) { this.matrix.copy(this.mesh.matrixWorld); + // 旧:projectionMatrix * modelViewMatrix + // 新:translateMatrix * projectionMatrix * _modelViewMatrix + // matrixWorld = + if (this.screenXY === undefined) { this.screenXY = new THREE.Vector3(); }