瀏覽代碼

link connection types

Fixed the connection linkage, and ran lint
Pryme8 5 年之前
父節點
當前提交
07801a549a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/Materials/Node/Blocks/trigonometryBlock.ts

+ 3 - 0
src/Materials/Node/Blocks/trigonometryBlock.ts

@@ -67,6 +67,9 @@ export class TrigonometryBlock extends NodeMaterialBlock {
 
         this.registerInput("input", NodeMaterialBlockConnectionPointTypes.AutoDetect);
         this.registerOutput("output", NodeMaterialBlockConnectionPointTypes.BasedOnInput);
+
+        this._outputs[0]._typeConnectionSource = this._inputs[0];
+        this._linkConnectionTypes(0, 1);
     }
 
     /**