Browse Source

fix equality

sunag 4 years ago
parent
commit
f54dca8d0c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/renderers/nodes/accessors/CameraNode.js

+ 2 - 2
examples/jsm/renderers/nodes/accessors/CameraNode.js

@@ -69,13 +69,13 @@ class CameraNode extends Node {
 
 			if ( scope === CameraNode.PROJECTION || scope === CameraNode.VIEW ) {
 
-				if ( inputNode === undefined || inputNode.isMatrix4Node !== true ) {
+				if ( inputNode === null || inputNode.isMatrix4Node !== true ) {
 
 					inputNode = new Matrix4Node( null );
 
 				}
 
-			} else if ( inputNode === undefined || inputNode.isVector3Node !== true ) {
+			} else if ( inputNode === null || inputNode.isVector3Node !== true ) {
 
 				inputNode = new Vector3Node();