Skip to content

Commit

Permalink
force remove ref output plug datum on unplug
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmtimbo committed Mar 1, 2024
1 parent feb1a2a commit b77be77
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Class/Graph/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2166,15 +2166,17 @@ export class Graph<I = any, O = any>
propagate
)

if (propagate) {
if (isUnitPinRef) {
if (isOutput) {
pin.take()
} else {
if (isUnitPinRef) {
if (isOutput) {
pin.take()
} else {
if (propagate) {
unit.takePin(type, _pinId)
}
}
}

if (propagate) {
if (type === 'input') {
unit.takeInput(_pinId)
}
Expand Down

0 comments on commit b77be77

Please sign in to comment.