Skip to content

Commit

Permalink
fix: add legacy schema for retrocompat (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala authored Jan 30, 2024
1 parent 072152c commit ece036d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/@dcl/inspector/src/lib/sdk/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ export function createEditorComponents(engine: IEngine): EditorComponents {
y: Schemas.Int
})

// legacy component
// we define the schema of the legacy component for retrocompat purposes
engine.defineComponent('inspector::Scene', {
layout: Schemas.Map({
base: Coords,
parcels: Schemas.Array(Coords)
})
})

const Scene = engine.defineComponent(EditorComponentNames.Scene, {
// everything but layout is set as optional for retrocompat purposes
name: Schemas.Optional(Schemas.String),
Expand Down

0 comments on commit ece036d

Please sign in to comment.