Skip to content

Commit

Permalink
Fix crash when shift+dragging an object without iolets
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 12, 2025
1 parent 69dfb17 commit 4fda471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ void Object::mouseDrag(MouseEvent const& e)

SmallArray<Connection*> inputs, outputs;
for (auto* connection : cnv->connections) {
if (connection->inlet == object->iolets[0]) {
if (object->iolets.size() && connection->inlet == object->iolets[0]) {
inputs.add(connection);
}
if (object->numOutputs && connection->outlet == object->iolets[object->numInputs]) {
Expand Down

0 comments on commit 4fda471

Please sign in to comment.