Skip to content

Commit 47748e0

Browse files
committed
fix: removing a ChoiceNode option now correctly disconnects the attached edge, closes #1122
1 parent ca077fe commit 47748e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fxgl-tools/src/main/kotlin/com/almasb/fxgl/tools/dialogues/DialoguePane.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@ class DialoguePane(graph: DialogueGraph = DialogueGraph()) : Pane() {
529529
c.addedSubList.forEach { outPoint ->
530530
attachMouseHandler(outPoint)
531531
}
532+
533+
c.removed.forEach { outPoint ->
534+
disconnectOutLink(outPoint)
535+
}
532536
}
533537
}
534538

0 commit comments

Comments
 (0)