浏览代码

TSL: NodeKeywords - Cleanup (#28476)

Looks like `NodeKeywords.nodes` is used more as an object than as an array since it's accessed with a `name` which I assume is a `string`.
Nathan Bierema 1 年之前
父节点
当前提交
b846f12132
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/nodes/core/NodeKeywords.js

+ 1 - 1
examples/jsm/nodes/core/NodeKeywords.js

@@ -3,7 +3,7 @@ class NodeKeywords {
 	constructor() {
 	constructor() {
 
 
 		this.keywords = [];
 		this.keywords = [];
-		this.nodes = [];
+		this.nodes = {};
 		this.keywordsCallback = {};
 		this.keywordsCallback = {};
 
 
 	}
 	}