Beispiel #1
0
 public bool IsCompatibleWith(MaterialSlot otherSlot)
 {
     return(otherSlot != null &&
            otherSlot.owner != owner &&
            otherSlot.isInputSlot != isInputSlot &&
            ((isInputSlot
              ? SlotValueHelper.AreCompatible(valueType, otherSlot.concreteValueType)
              : SlotValueHelper.AreCompatible(otherSlot.valueType, concreteValueType))));
 }
Beispiel #2
0
 public bool IsCompatibleWith(MaterialSlot otherSlot)
 {
     return(otherSlot != null &&
            otherSlot.owner != owner &&
            otherSlot.isInputSlot != isInputSlot &&
            !hidden &&
            !otherSlot.hidden &&
            ((isInputSlot
             ? SlotValueHelper.AreCompatible(valueType, otherSlot.concreteValueType, otherSlot.IsConnectionTestable())
             : SlotValueHelper.AreCompatible(otherSlot.valueType, concreteValueType, IsConnectionTestable()))));
 }