Skip to content

Commit 425e980

Browse files
authored
Fixed connected node shortcut for layer inputs (#1244)
1 parent e423a46 commit 425e980

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Stitch/Graph/Node/Util/NodeCreatedAction.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ extension StitchDocumentViewModel {
3030

3131
// Find the input
3232
guard let selectedInput = state.selectedInput,
33-
var selectedInputLocation = graph.getNode(selectedInput.nodeId)?.nonLayerCanvasItem?.locationOfInputs,
33+
var selectedInputLocation = graph.getCanvasItem(inputId: selectedInput)?
34+
.locationOfInputs,
3435
let selectedInputObserver = state.visibleGraph.getInputRowObserver(selectedInput),
3536
let selectedInputType: UserVisibleType = selectedInputObserver.values.first?.toNodeType else {
3637
fatalErrorIfDebug()

0 commit comments

Comments
 (0)