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