[Sketcher] Grid snapping is enabled only if grid is shown
This commit is contained in:
committed by
abdullahtahiriyo
parent
23e26e2ca6
commit
b094ca2ed4
@@ -500,7 +500,7 @@ bool ViewProviderSketch::keyPressed(bool pressed, int key)
|
||||
|
||||
void ViewProviderSketch::snapToGrid(double &x, double &y)
|
||||
{
|
||||
if (GridSnap.getValue() != false) {
|
||||
if (GridSnap.getValue() && ShowGrid.getValue()) {
|
||||
// Snap Tolerance in pixels
|
||||
const double snapTol = GridSize.getValue() / 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user