From dacbb7ca41b13cc9c6221f850306a92c16c472ed Mon Sep 17 00:00:00 2001 From: Forrest Li Date: Mon, 27 Jul 2020 10:53:59 -0400 Subject: [PATCH] fix(LayoutView): Remove unnecessary camera reset --- src/components/core/LayoutView/script.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/components/core/LayoutView/script.js b/src/components/core/LayoutView/script.js index cae8629d..2ec0958b 100644 --- a/src/components/core/LayoutView/script.js +++ b/src/components/core/LayoutView/script.js @@ -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(); },