Skip to content

Commit 93a88a2

Browse files
Do not show the transform if there is no current selection (#615)
* Do not show the transform if there is no current selection * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2216bb6 commit 93a88a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/base/src/3dview/mainview.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,8 +1524,9 @@ export class MainView extends React.Component<IProps, IStates> {
15241524
this.setState(
15251525
old => ({ ...old, transform: transformEnabled }),
15261526
() => {
1527-
this._transformControls.visible = transformEnabled;
1528-
this._transformControls.enabled = transformEnabled;
1527+
this._updateTransformControls(
1528+
Object.keys(this._currentSelection || {})
1529+
);
15291530
}
15301531
);
15311532
}

0 commit comments

Comments
 (0)