Skip to content

Commit

Permalink
feat: add outlineCompatible field to the wearable data object (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo authored Jan 8, 2025
1 parent 7162c8a commit 0969e6b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions report/schemas.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3494,6 +3494,7 @@ export type Wearable = BaseItem & {
category: WearableCategory;
removesDefaultHiding?: HideableWearableCategory[];
blockVrmExport?: boolean;
outlineCompatible?: boolean;
};
} & (StandardProps | ThirdPartyProps);

Expand Down
5 changes: 5 additions & 0 deletions src/platform/item/wearable/wearable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type Wearable = BaseItem & {
category: WearableCategory
removesDefaultHiding?: HideableWearableCategory[]
blockVrmExport?: boolean
outlineCompatible?: boolean
}
} & (StandardProps | ThirdPartyProps)

Expand Down Expand Up @@ -60,6 +61,10 @@ export namespace Wearable {
blockVrmExport: {
type: 'boolean',
nullable: true
},
outlineCompatible: {
type: 'boolean',
nullable: true
}
},
required: ['replaces', 'hides', 'tags', 'representations', 'category']
Expand Down
4 changes: 4 additions & 0 deletions src/sdk/project/wearable-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export namespace WearableJson {
blockVrmExport: {
type: 'boolean',
nullable: true
},
outlineCompatible: {
type: 'boolean',
nullable: true
}
},
required: ['replaces', 'hides', 'tags', 'representations', 'category']
Expand Down
3 changes: 2 additions & 1 deletion test/platform/item/wearable/linked-wearable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ describe('Linked wearables tests', () => {
tags: ['tag1'],
representations: [representation],
category: WearableCategory.UPPER_BODY,
blockVrmExport: false
blockVrmExport: false,
outlineCompatible: false
},
i18n: [
{
Expand Down
3 changes: 2 additions & 1 deletion test/platform/item/wearable/wearable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ describe('Wearable representation tests', () => {
tags: ['tag1'],
representations: [representation],
category: WearableCategory.UPPER_BODY,
blockVrmExport: false
blockVrmExport: false,
outlineCompatible: false
},
i18n: [
{
Expand Down

0 comments on commit 0969e6b

Please sign in to comment.