src/glcamera.cpp

changeset 1324
563a9b65777b
parent 1319
39d7a9642eea
child 1326
69a90bd2dba2
equal deleted inserted replaced
1323:05b3e173c900 1324:563a9b65777b
109 QPointF snapped = grid->snap({cx, cy}); 109 QPointF snapped = grid->snap({cx, cy});
110 cx = snapped.x(); 110 cx = snapped.x();
111 cy = snapped.y(); 111 cy = snapped.y();
112 } 112 }
113 113
114 roundToDecimals(cx, 4); 114 cx = roundToDecimals(cx, 4);
115 roundToDecimals(cy, 4); 115 cy = roundToDecimals(cy, 4);
116 116
117 // Create the vertex from the coordinates 117 // Create the vertex from the coordinates
118 position3d.setCoordinate(axisX(), cx * signX); 118 position3d.setCoordinate(axisX(), cx * signX);
119 position3d.setCoordinate(axisY(), cy * signY); 119 position3d.setCoordinate(axisY(), cy * signY);
120 position3d.setCoordinate(axisZ(), m_depth); 120 position3d.setCoordinate(axisZ(), m_depth);

mercurial