auto-git:
[change] src/commands/commit-transform-session-command.ts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user