From 1a7777d8c31bbef268e7679af017e9eb81f19918 Mon Sep 17 00:00:00 2001 From: Hao Ye Date: Mon, 18 Dec 2023 17:20:26 +0800 Subject: [PATCH] fix: reset _identityCalculated on clone --- player/js/3rd_party/transformation-matrix.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/player/js/3rd_party/transformation-matrix.js b/player/js/3rd_party/transformation-matrix.js index c3a7dbdaa..4b4e86759 100644 --- a/player/js/3rd_party/transformation-matrix.js +++ b/player/js/3rd_party/transformation-matrix.js @@ -255,6 +255,9 @@ const Matrix = (function () { for (i = 0; i < 16; i += 1) { matr.props[i] = this.props[i]; } + if (typeof matr._identityCalculated === 'boolean') { + matr._identityCalculated = false; + } return matr; } @@ -263,6 +266,7 @@ const Matrix = (function () { for (i = 0; i < 16; i += 1) { this.props[i] = props[i]; } + this._identityCalculated = false; } function applyToPoint(x, y, z) {