Skip to content

Commit

Permalink
fix(LayoutView): Remove unnecessary camera reset
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Jul 27, 2020
1 parent 6a09881 commit dacbb7c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/components/core/LayoutView/script.js
Expand Up @@ -42,20 +42,6 @@ export default {
},
...mapActions('views', ['updateLayout']),
},
proxyManagerHooks: {
onProxyCreated({ proxyGroup, proxyName }) {
// reset cameras when first trivial producer source is added
if (
proxyGroup === 'Sources' &&
proxyName === 'TrivialProducer' &&
this.$proxyManager
.getSources()
.filter((s) => s.getProxyName() === 'TrivialProducer').length === 1
) {
this.$proxyManager.resetCameraInAllViews();
}
},
},
updated() {
this.$proxyManager.resizeAllViews();
},
Expand Down

0 comments on commit dacbb7c

Please sign in to comment.