Skip to content

Commit 4f7c1fc

Browse files
Do not update the camera position automatically for single object scene (#559)
* Do not update the camera position automatically for single object scene * Update Playwright Snapshots --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d08d4b0 commit 4f7c1fc

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,8 @@ export class MainView extends React.Component<IProps, IStates> {
782782
}
783783
});
784784

785-
// Update the reflength. We will update the camera position accordingly if there is a single object.
786-
this._updateRefLength(
787-
this._meshGroup.children.length === 1 || this._refLength === null
788-
);
785+
// Update the reflength.
786+
this._updateRefLength(this._refLength === null);
789787
// Set the expoded view if it's enabled
790788
this._setupExplodedView();
791789

7.77 KB
Loading
7.78 KB
Loading
809 Bytes
Loading

0 commit comments

Comments
 (0)