bill 2 년 전
부모
커밋
56bcafb04c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/api/model.ts

+ 2 - 1
src/api/model.ts

@@ -48,6 +48,7 @@ interface ServiceModel {
   fusionId?: number,
   modelSize: number
   modelTitle: string
+  modelUrl?: string
   opacity: number
   bottom: number
   type: number
@@ -66,7 +67,7 @@ const serviceToLocal = (serviceModel: ServiceModel): Model => ({
   position: serviceModel.transform.position,
   rotation: serviceModel.transform.rotation,
   id: serviceModel.id.toString(),
-  url: serviceModel.modelGlbUrl,
+  url: serviceModel.modelUrl || serviceModel.modelGlbUrl,
   title: serviceModel.modelTitle,
   fusionId: serviceModel.fusionId,
   type:  serviceModel.type === 2 ? ModelType.SWSS : ModelType.SWMX,