浏览代码

Playground: Fix examples (#25732)

* NodeEditorLib: Fix nodeClass prototype.

* Playground: Fix examples invert() -> oneMinus()
sunag 2 年之前
父节点
当前提交
3038140a13
共有 3 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      playground/NodeEditorLib.js
  2. 0 0
      playground/examples/universal/fresnel.json
  3. 0 0
      playground/examples/webgl/car.json

+ 1 - 1
playground/NodeEditorLib.js

@@ -117,7 +117,7 @@ export const getNodeEditorClass = async ( nodeData ) => {
 
 	//
 
-	let nodeClass = ClassLib[ editorClass ];
+	let nodeClass = nodeData.nodeClass || ClassLib[ editorClass ];
 
 	if ( nodeClass !== undefined ) {
 

文件差异内容过多而无法显示
+ 0 - 0
playground/examples/universal/fresnel.json


文件差异内容过多而无法显示
+ 0 - 0
playground/examples/webgl/car.json


部分文件因为文件数量过多而无法显示