Fix incompatible nodes types

This commit is contained in:
barsdeveloper
2023-05-20 19:51:44 +02:00
parent 9add38e914
commit 32cc4d7c66
6 changed files with 49 additions and 15 deletions

View File

@@ -44,6 +44,9 @@ export default class MouseCreateLink extends IMouseClickDrag {
} else if (outputPin.entity.getType() === "exec" && outputPin.isLinked) {
this.link.setMessageReplaceOutputLink()
this.linkValid = true
} else if (a.pinType != b.pinType) {
this.link.setMessageTypesIncompatible(a, b)
this.linkValid = false
} else {
this.link.setMessageCorrect()
this.linkValid = true