X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawingview.cpp;h=629999f148b4a83a9bb604bb0360bc502b54d2a1;hb=6c1279871f6bb86bc59e2561b6a7f74ab081f71e;hp=fc30ac8e259ce61a092b35210f2ab6280ce2b457;hpb=7f3a6b11585376eecd80979ec3da2346c5314d88;p=architektonas diff --git a/src/drawingview.cpp b/src/drawingview.cpp index fc30ac8..629999f 100644 --- a/src/drawingview.cpp +++ b/src/drawingview.cpp @@ -419,6 +419,16 @@ void DrawingView::mouseMoveEvent(QMouseEvent * event) // This returns true if we've moved over an object... if (document.PointerMoved(point)) { +/* +Now objects handle mouse move snapping as well. The code below mainly works only +for tools; we need to fix it so that objects work as well... + +There's a problem with the object point snapping in that it's dependent on the +order of the objects in the document. Most likely this is because it counts the +selected object last and thus fucks up the algorithm. Need to fix this... + + +*/ // Do object snapping here. Grid snapping on mouse down is done in the // objects themselves, only because we have to hit test the raw point, // not the snapped point. There has to be a better way...!