浏览代码

NodeMaterial: improve CondNode constructor's type

Signed-off-by: martinRenou <[email protected]>
martinRenou 5 年之前
父节点
当前提交
e5df9f61e0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/jsm/nodes/math/CondNode.d.ts

+ 3 - 3
examples/jsm/nodes/math/CondNode.d.ts

@@ -4,13 +4,13 @@ import { Node } from '../core/Node';
 
 export class CondNode extends TempNode {
 
-	constructor( a: Node, b: Node, op: string, ifNode: Node, elseNode: Node );
+	constructor( a: Node, b: Node, op: string, ifNode?: Node, elseNode?: Node );
 
 	a: Node;
 	b: Node;
 	op: string;
-	ifNode: Node;
-	elseNode: Node;
+	ifNode: Node | undefined;
+	elseNode: Node | undefined;
 	nodeType: string;
 
 	getCondType( builder: NodeBuilder ): string;