2
0
sunag 4 жил өмнө
parent
commit
f54dca8d0c

+ 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();