From c873d40b57dc428cd0a945a7bfc88b80630c1770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=AF=97=E6=B4=A5?= <2723065175@qq.com> Date: Tue, 4 Jun 2024 07:12:08 +0000 Subject: [PATCH] =?UTF-8?q?!2795=20=E4=BF=AE=E5=A4=8D:fbx=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E5=A4=A7=E5=B0=8F=E6=9B=B4=E6=96=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DatabaseServices/Entity/EntityFbx.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/DatabaseServices/Entity/EntityFbx.ts b/src/DatabaseServices/Entity/EntityFbx.ts index ad7102c2e..061d22bb4 100644 --- a/src/DatabaseServices/Entity/EntityFbx.ts +++ b/src/DatabaseServices/Entity/EntityFbx.ts @@ -347,10 +347,8 @@ export class EntityFbx extends Entity let newObject = obj.children[0]; //缩放尺寸(如果用户指定了这个缩放 我们就缩放它) - if (this._ScaleSize.x && this._Size.x) - newObject.scale.copy(this._ScaleSize).divide(this._Size).multiplyScalar(10); - else - newObject.scale.set(10, 10, 10);//UE4缩放10 如果按米为单位的缩放1000 + if (this._ScaleSize.x) + newObject.scale.copy(this._ScaleSize).divide(this._Size); newObject.updateMatrix();//保证更新缩放 newObject.updateMatrixWorld(false);//保证更新位置