Skip to content

Commit 357764d

Browse files
committed
StereoCamera: Store instance reference. See mrdoob#9656.
1 parent 97eb3d3 commit 357764d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cameras/StereoCamera.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ Object.assign( StereoCamera.prototype, {
2828

2929
update: ( function () {
3030

31-
var id, focus, fov, aspect, near, far, zoom;
31+
var instance, focus, fov, aspect, near, far, zoom;
3232

3333
var eyeRight = new Matrix4();
3434
var eyeLeft = new Matrix4();
3535

3636
return function update( camera ) {
3737

38-
var needsUpdate = id !== camera.id || focus !== camera.focus || fov !== camera.fov ||
38+
var needsUpdate = instance !== this || focus !== camera.focus || fov !== camera.fov ||
3939
aspect !== camera.aspect * this.aspect || near !== camera.near ||
4040
far !== camera.far || zoom !== camera.zoom;
4141

4242
if ( needsUpdate ) {
4343

44-
id = camera.id;
44+
instance = this;
4545
focus = camera.focus;
4646
fov = camera.fov;
4747
aspect = camera.aspect * this.aspect;

0 commit comments

Comments
 (0)