Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/plugdata-team/plugdata i…
Browse files Browse the repository at this point in the history
…nto develop
  • Loading branch information
timothyschoen committed Oct 27, 2023
2 parents 54f4ea0 + 078f8de commit 9def938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ObjectGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void ObjectGrid::propertyChanged(String const& name, var const& value)

Point<int> ObjectGrid::performMove(Object* toDrag, Point<int> dragOffset)
{
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0) {
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0 || !gridEnabled) {
clearIndicators();
return dragOffset;
}
Expand Down Expand Up @@ -201,7 +201,7 @@ Point<int> ObjectGrid::performMove(Object* toDrag, Point<int> dragOffset)

Point<int> ObjectGrid::performResize(Object* toDrag, Point<int> dragOffset, Rectangle<int> newResizeBounds)
{
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0) {
if (ModifierKeys::getCurrentModifiers().isShiftDown() || gridType == 0 || !gridEnabled) {
clearIndicators();
return dragOffset;
}
Expand Down

0 comments on commit 9def938

Please sign in to comment.