Skip to content

Commit

Permalink
don't reset camera unless motif kind
Browse files Browse the repository at this point in the history
  • Loading branch information
sbittrich committed Aug 23, 2023
1 parent e8511d0 commit 403c287
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/viewer/helpers/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ export class ModelLoader {
if (props?.kind === 'motif') {
const group = this.plugin.managers.structure.hierarchy.currentComponentGroups[0];
this.plugin.managers.camera.focusSpheres(group, e => e.cell.obj?.data.boundary.sphere, { durationMs: 0 });
} else {
this.plugin.managers.camera.reset(undefined, 0);
}

return selector;
Expand Down

0 comments on commit 403c287

Please sign in to comment.