Fix link bug, style minor fixes

This commit is contained in:
barsdeveloper
2023-05-21 12:19:55 +02:00
parent a541d6948f
commit f17b5ee15a
10 changed files with 77 additions and 56 deletions

View File

@@ -44,7 +44,10 @@ 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) {
} else if (
(a.entity.PinType.PinCategory != "object" || b.entity.PinType.PinCategory != "object")
&& a.pinType != b.pinType
) {
this.link.setMessageTypesIncompatible(a, b)
this.linkValid = false
} else {