1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

fix TiltShiftPass watch

This commit is contained in:
Kevin Levron 2021-03-05 08:00:24 +01:00
parent a67d322790
commit 50410d4cbb

View File

@ -33,7 +33,7 @@ export default {
this.updateFocusLine(); this.updateFocusLine();
['start', 'end'].forEach(p => { ['start', 'end'].forEach(p => {
watch(() => this[p], this.updateFocusLine); watch(() => this[p], this.updateFocusLine, { deep: true });
}); });
this.pass.setSize = (width, height) => { this.pass.setSize = (width, height) => {