diff --git a/src/document/migrate-scene-document.ts b/src/document/migrate-scene-document.ts index d68c066f..ab3f7136 100644 --- a/src/document/migrate-scene-document.ts +++ b/src/document/migrate-scene-document.ts @@ -6326,7 +6326,7 @@ export function migrateSceneDocument(source: unknown): SceneDocument { interactionLinks: readInteractionLinks(source.interactionLinks) }; - if (source.version < NPC_TARGETING_SCENE_DOCUMENT_VERSION) { + if (source.version < NPC_TARGETING_DEFAULT_SCENE_DOCUMENT_VERSION) { migratedDocument = migrateLegacySceneNpcTargetability(migratedDocument); } @@ -6477,7 +6477,7 @@ export function migrateProjectDocument(source: unknown): ProjectDocument { foliagePrototypes: readFoliagePrototypes(source.foliagePrototypes, assets) }; - if (source.version < NPC_TARGETING_SCENE_DOCUMENT_VERSION) { + if (source.version < NPC_TARGETING_DEFAULT_SCENE_DOCUMENT_VERSION) { migratedDocument = migrateLegacyProjectNpcTargetability(migratedDocument); }