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;
         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)
      * 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
             // Equivalents
             switch (this.type) {
             switch (this.type) {
                 case NodeMaterialBlockConnectionPointTypes.Vector3: {
                 case NodeMaterialBlockConnectionPointTypes.Vector3: {