]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/rotatetool.cpp
Refactor Designer::use_tool so tools don't need to take a set of objects
[r2c2.git] / source / designer / rotatetool.cpp
index 5931e831d3cc17d829841026497f5cb03cdb97d2..63f237197ccf96680289418a38510a0d66221b8c 100644 (file)
@@ -9,10 +9,8 @@ RotateTool::RotateTool(Designer &d, Input::Mouse &m, const set<Object *> &o):
        origin(Geometry::atan2(ground_pointer.y-center.y, ground_pointer.x-center.x))
 { }
 
-void RotateTool::axis_motion(unsigned axis, float value, float rel)
+void RotateTool::pointer_motion()
 {
-       Manipulator::axis_motion(axis, value, rel);
-
        Angle a = Geometry::atan2(ground_pointer.y-center.y, ground_pointer.x-center.x);
        angle += a-origin;
        origin = a;