소스 검색

fix equality

sunag 4 년 전
부모
커밋
f54dca8d0c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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();