auto-git:
[change] src/core/transform-session.ts
This commit is contained in:
@@ -1620,6 +1620,13 @@ function createEntityTransformTarget(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!("position" in entity)) {
|
||||||
|
return {
|
||||||
|
target: null,
|
||||||
|
message: "Select an authored entity before transforming it."
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const clonedEntity = cloneEntityInstance(entity);
|
const clonedEntity = cloneEntityInstance(entity);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -1627,7 +1634,7 @@ function createEntityTransformTarget(
|
|||||||
kind: "entity",
|
kind: "entity",
|
||||||
entityId: clonedEntity.id,
|
entityId: clonedEntity.id,
|
||||||
entityKind: clonedEntity.kind,
|
entityKind: clonedEntity.kind,
|
||||||
initialPosition: cloneVec3(clonedEntity.position),
|
initialPosition: cloneVec3(entity.position),
|
||||||
initialRotation: resolveEntityRotation(clonedEntity)
|
initialRotation: resolveEntityRotation(clonedEntity)
|
||||||
},
|
},
|
||||||
message: null
|
message: null
|
||||||
|
|||||||
Reference in New Issue
Block a user