Skip to content

Commit 33afca3

Browse files
fix: add missing outlineCompatible prop in buildWearableEntityMetadata fn (#3238)
1 parent 81bd6e2 commit 33afca3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/components/Modals/CreateSingleItemModal/CreateSingleItemModal.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ export default class CreateSingleItemModal extends React.PureComponent<Props, St
315315
tags: tags || [],
316316
representations: [...representations],
317317
requiredPermissions: requiredPermissions || [],
318-
blockVrmExport: blockVrmExport ?? false
318+
blockVrmExport: blockVrmExport ?? false,
319+
outlineCompatible: true // it's going to be true for all the items. It can be deactivated later in the editor view
319320
} as WearableData
320321
} else {
321322
data = {
@@ -398,7 +399,8 @@ export default class CreateSingleItemModal extends React.PureComponent<Props, St
398399
removesDefaultHiding: removesDefaultHiding,
399400
tags: [...editedItem.data.tags],
400401
requiredPermissions: requiredPermissions || [],
401-
blockVrmExport: editedItem.data.blockVrmExport
402+
blockVrmExport: editedItem.data.blockVrmExport,
403+
outlineCompatible: editedItem.data.outlineCompatible || true // it's going to be true for all the items. It can be deactivated later in the editor view
402404
},
403405
contents: {
404406
...editedItem.contents,

src/modules/editor/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export type CatalystWearable = {
6666
}[]
6767
}[]
6868
blockVrmExport?: boolean
69+
outlineCompatible?: boolean
6970
}
7071
i18n: { code: string; text: string }[]
7172
createdAt: number

src/modules/item/export.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ function buildTPItemEntityMetadata(item: Item, itemHash: string, tree: MerkleDis
148148
tags: item.data.tags,
149149
category: item.data.category as WearableCategory,
150150
representations: item.data.representations as WearableRepresentation[],
151-
...('blockVrmExport' in item.data ? { blockVrmExport: item.data.blockVrmExport } : {})
151+
...('blockVrmExport' in item.data ? { blockVrmExport: item.data.blockVrmExport } : {}),
152+
...('outlineCompatible' in item.data ? { outlineCompatible: item.data.outlineCompatible } : {})
152153
},
153154
image: IMAGE_PATH,
154155
thumbnail: THUMBNAIL_PATH,
@@ -183,7 +184,8 @@ function buildWearableEntityMetadata(collection: Collection, item: Item): Wearab
183184
tags: item.data.tags,
184185
category: item.data.category!,
185186
representations: item.data.representations,
186-
...('blockVrmExport' in item.data ? { blockVrmExport: item.data.blockVrmExport } : {})
187+
...('blockVrmExport' in item.data ? { blockVrmExport: item.data.blockVrmExport } : {}),
188+
...('outlineCompatible' in item.data ? { outlineCompatible: item.data.outlineCompatible } : {})
187189
},
188190
image: IMAGE_PATH,
189191
thumbnail: THUMBNAIL_PATH,

0 commit comments

Comments
 (0)