Add presence to NPC creation preview

This commit is contained in:
2026-04-13 23:53:46 +02:00
parent 6a662bc9ff
commit 9992cc3421

View File

@@ -96,6 +96,7 @@ import {
} from "../document/world-settings";
import type { WorldSettings } from "../document/world-settings";
import {
createNpcAlwaysPresence,
createNpcColliderSettings,
DEFAULT_INTERACTABLE_RADIUS,
DEFAULT_NPC_YAW_DEGREES,
@@ -6348,6 +6349,7 @@ export class ViewportHost {
position: previewPosition,
yawDegrees: DEFAULT_NPC_YAW_DEGREES,
actorId: "creation-preview",
presence: createNpcAlwaysPresence(),
modelAssetId: toolPreview.target.modelAssetId ?? null,
collider: createNpcColliderSettings()
},