Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 23, 2024
1 parent 232e2dc commit 3bdfd84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/base/src/3dview/mainview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1068,9 +1068,11 @@ export class MainView extends React.Component<IProps, IStates> {

this._meshGroup?.add(boundingBox);

const matchingChild = this._meshGroup?.children.find(child => child.name.startsWith(selectedMesh.name));
const matchingChild = this._meshGroup?.children.find(child =>
child.name.startsWith(selectedMesh.name)
);
console.log(matchingChild);

if (matchingChild) {
this._transformControls.attach(matchingChild as BasicMesh);
this._transformControls.visible = true;
Expand Down

0 comments on commit 3bdfd84

Please sign in to comment.