Update document migration checks to use default version constant

This commit is contained in:
2026-05-11 21:35:27 +02:00
parent c30aa4fbc8
commit 9ba93694cc

View File

@@ -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);
}