View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000235 | FreeCAD | Patch | public | 2011-01-09 13:07 | 2011-01-13 09:54 |
Reporter | myier | Assigned To | yorik | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Product Version | 0.12 | ||||
Fixed in Version | 0.11 | ||||
Summary | 0000235: [PATCH] rotate tool using keyboard input was broken | ||||
Description | While using the mouse, center point selection was possible, with the keyboard it wasn't. It seems that a method was renamed, but not everywhere in commit 3764 (see diff: http://free-cad.svn.sourceforge.net/viewvc/free-cad/trunk/src/Mod/Draft/draftTools.py?r1=3752&r2=3764&pathrev=3877). Patch follows: --- draftTools.py (revision 3858) +++ draftTools.py (working copy) @@ -2270,7 +2270,7 @@ "this function gets called by the toolbar when valid x, y, and z have been entered there" self.center = Vector(numx,numy,numz) self.node = [self.center] - self.arctrack.centerPoint(self.center) + self.arctrack.setCenter(self.center) self.ghost.trans.center.setValue(self.center.x,self.center.y,self.center.z) self.linetrack.p1(self.center) self.arctrack.on() | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
|
There are several other errors in the code of the rotate keyboard handler: - the centerPoint() method does not exist anymore, and may be fixed like this (I'm not sure if it's the right method): - self.arctrack.centerPoint(self.center) + self.arctrack.setCenter(self.center) - the fcvec.rotate() method has a different number of arguments now (and I don't know how to fix it): File "/opt/freecad-svn/Mod/Draft/draftTools.py", line 2288, in numericRadius self.arctrack.setStartAngle(fcvec.rotate(math.radians(rad))) TypeError: rotate() takes at least 2 arguments (1 given) |
|
fixed in r3878. Thanks for reporting! |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-01-09 13:07 | myier | New Issue | |
2011-01-09 13:37 | myier | Note Added: 0000492 | |
2011-01-09 14:22 | yorik | Status | new => assigned |
2011-01-09 14:22 | yorik | Assigned To | => yorik |
2011-01-09 14:48 | yorik | Note Added: 0000493 | |
2011-01-09 14:48 | yorik | Status | assigned => closed |
2011-01-09 14:48 | yorik | Resolution | open => fixed |
2011-01-09 14:48 | yorik | Fixed in Version | => 0.12 |
2011-01-13 09:54 |
|
Fixed in Version | 0.12 => 0.11 |