From b941e96e70812debabc7d15867122497a15e0040 Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 10 Sep 2019 18:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=85=B7=E5=AE=B6=E4=B9=90?= =?UTF-8?q?=E5=AD=94=E9=9D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/KJLImport.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Add-on/KJLImport.ts b/src/Add-on/KJLImport.ts index d2f65113b..ebf0046e7 100644 --- a/src/Add-on/KJLImport.ts +++ b/src/Add-on/KJLImport.ts @@ -13,7 +13,7 @@ import { Vec2 } from "../Geometry/CheckIntersect"; import { AsVector2, equaln } from "../Geometry/GeUtils"; import { Vec3 } from "../Geometry/IVec3"; import { HotCMD } from "../Hot/HotCommand"; -import { ComposingType, LinesType } from "../UI/Store/BoardInterface"; +import { FaceDirection, LinesType } from "../UI/Store/BoardInterface"; /** 模型类型 */ enum KJL_ModelType @@ -185,7 +185,7 @@ function ParseModel(model: KJL_ParamModel, roomName: string, gName: string, pare case 1: br.SetBoardType(BoardType.Behind); br.ColorIndex = 3; - br.BoardProcessOption[EBoardKeyList.ComposingFace] = ComposingType.Reverse; + br.BoardProcessOption[EBoardKeyList.BigHole] = FaceDirection.Back; break; case 2: br.SetBoardType(BoardType.Layer); @@ -204,9 +204,9 @@ function ParseModel(model: KJL_ParamModel, roomName: string, gName: string, pare { let p = br.Position; if (p.z > 1500) - br.BoardProcessOption[EBoardKeyList.ComposingFace] = ComposingType.Positive; + br.BoardProcessOption[EBoardKeyList.BigHole] = FaceDirection.Front; else - br.BoardProcessOption[EBoardKeyList.ComposingFace] = ComposingType.Reverse; + br.BoardProcessOption[EBoardKeyList.BigHole] = FaceDirection.Back; } if (model.textureAngle === 0) br.BoardProcessOption[EBoardKeyList.Lines] = LinesType.Reverse;