1
This commit is contained in:
@@ -51,6 +51,7 @@ import {
|
||||
DEFAULT_PRIVATE_CHAT_UNLOCK_AFFINITY,
|
||||
} from './affinityLevels';
|
||||
import { coerceWorldAttributeSchema } from './attributeValidation';
|
||||
import { normalizeCustomWorldSceneRelativePosition } from './customWorldSceneGraph';
|
||||
import {
|
||||
type CustomWorldLandmarkDraft,
|
||||
normalizeCustomWorldLandmarks,
|
||||
@@ -877,8 +878,11 @@ function normalizeCampScene(
|
||||
connections: toRecordArray(value.connections)
|
||||
.map((connection) => ({
|
||||
targetLandmarkId: toText(connection.targetLandmarkId),
|
||||
relativePosition:
|
||||
toText(connection.relativePosition) || toText(connection.position) || 'forward',
|
||||
relativePosition: normalizeCustomWorldSceneRelativePosition(
|
||||
toText(connection.relativePosition) ||
|
||||
toText(connection.position) ||
|
||||
'forward',
|
||||
),
|
||||
summary: toText(connection.summary) || toText(connection.description),
|
||||
}))
|
||||
.filter((connection) => connection.targetLandmarkId),
|
||||
@@ -920,8 +924,9 @@ function normalizeLandmarkDraft(
|
||||
toText(connection.targetLandmarkName) ||
|
||||
toText(connection.target) ||
|
||||
toText(connection.sceneName),
|
||||
relativePosition:
|
||||
relativePosition: normalizeCustomWorldSceneRelativePosition(
|
||||
toText(connection.relativePosition) || toText(connection.position),
|
||||
),
|
||||
summary: toText(connection.summary) || toText(connection.description),
|
||||
})),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user