David Catuhe 5 年之前
父节点
当前提交
8044c97f1e
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/Materials/Node/nodeMaterialBlockConnectionPoint.ts

+ 6 - 1
src/Materials/Node/nodeMaterialBlockConnectionPoint.ts

@@ -91,6 +91,11 @@ export class NodeMaterialConnectionPoint {
         this._associatedVariableName = value;
     }
 
+    /** Get the inner type (ie AutoDetect for isntance instead of the inferred one) */
+    public get innerType() {
+        return this._type;
+    }
+
     /**
      * Gets or sets the connection point type (default is float)
      */
@@ -330,7 +335,7 @@ export class NodeMaterialConnectionPoint {
             }
         }
 
-        if (this.type !== connectionPoint.type && connectionPoint.type !== NodeMaterialBlockConnectionPointTypes.AutoDetect) {
+        if (this.type !== connectionPoint.type && connectionPoint.innerType !== NodeMaterialBlockConnectionPointTypes.AutoDetect) {
             // Equivalents
             switch (this.type) {
                 case NodeMaterialBlockConnectionPointTypes.Vector3: {