Canvas: Always show rotation in layout editor (#90571)

* Canvas: Always display rotation in layout editor

* Simplify condition

* Set default rotation from options if null
This commit is contained in:
Drew Slobodnjak 2024-07-26 14:37:07 -07:00 committed by GitHub
parent 6b0d20c96a
commit 0edb0c5c4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ export function PlacementEditor({ item }: Props) {
const { options } = element;
const { placement, constraint: layout } = options;
if (placement) {
placement.rotation = placement?.rotation ?? 0;
}
const reselectElementAfterChange = () => {
setTimeout(() => {
settings.scene.select({ targets: [element.div!] });