We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea305fb commit 4edeb85Copy full SHA for 4edeb85
js/src/core/Renderer.js
@@ -37,12 +37,17 @@ var RendererModel = RenderableModel.extend({
37
setupListeners: function() {
38
39
var scene = this.get('scene');
40
+ var camera = this.get('camera');
41
this.on('change', this.onChange.bind(this));
42
this.listenTo(scene, 'change', this.onChange.bind(this));
43
this.listenTo(scene, 'childchange', this.onChange.bind(this));
44
+ this.listenTo(camera, 'change', this.onCameraChange.bind(this));
45
46
},
47
48
+ onCameraChange: function(model, options) {
49
+ this.onChange();
50
+ },
51
52
onChange: function(model, options) {
53
this.trigger('rerender', this, {});
0 commit comments