auto-git:

[change] src/commands/commit-transform-session-command.ts
This commit is contained in:
2026-04-22 16:59:06 +02:00
parent c790c0af14
commit 7e41d72295

View File

@@ -11,6 +11,7 @@ import type { SceneDocument } from "../document/scene-document";
import { createModelInstance } from "../assets/model-instances";
import { updateBrush, type Brush } from "../document/brushes";
import {
createCameraRigEntity,
createInteractableEntity,
createNpcEntity,
createPlayerStartEntity,
@@ -53,7 +54,9 @@ function createTransformCommandLabel(session: ActiveTransformSession): string {
break;
case "entity":
targetLabel =
session.target.entityKind === "playerStart"
session.target.entityKind === "cameraRig"
? "camera rig"
: session.target.entityKind === "playerStart"
? "player start"
: session.target.entityKind === "npc"
? "NPC"
@@ -108,6 +111,11 @@ function createUpdatedEntityFromPreview(
...entity,
position: preview.position
});
case "cameraRig":
return createCameraRigEntity({
...entity,
position: preview.position
});
case "spotLight":
return createSpotLightEntity({
...entity,