diff options
author | Bruce Smith <bruce@nanorex.com> | 2009-03-10 17:04:18 +0000 |
---|---|---|
committer | Bruce Smith <bruce@nanorex.com> | 2009-03-10 17:04:18 +0000 |
commit | 5eaea8b40aadbfa299e7a794a13a93e77933a53a (patch) | |
tree | d92118c5d28bf68433a568f637090132c7a94f24 | |
parent | 182540a2d4905d48e744df8d58570b90d32dfabb (diff) | |
download | nanoengineer-theirix-5eaea8b40aadbfa299e7a794a13a93e77933a53a.tar.gz nanoengineer-theirix-5eaea8b40aadbfa299e7a794a13a93e77933a53a.zip |
fix apparent bug (redundant drawPointOfViewAxes) introduced in late 2006
-rwxr-xr-x | cad/src/command_support/GraphicsMode.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cad/src/command_support/GraphicsMode.py b/cad/src/command_support/GraphicsMode.py index fd75926f1..6ed154b7b 100755 --- a/cad/src/command_support/GraphicsMode.py +++ b/cad/src/command_support/GraphicsMode.py @@ -357,8 +357,16 @@ class basicGraphicsMode(GraphicsMode_API): else: drawaxes(self.o.scale, (0.0, 0.0, 0.0), coloraxes = True) - if env.prefs[displayPOVAxis_prefs_key]: - drawPointOfViewAxes(self.o.scale, -self.o.pov) + # Note: the next statement seems redundant with what follows it. + # It was introduced in svn revision 5253, Wed Sep 20 21:15:08 2006 UTC, + # by Ninad, who also added the "cross wire" part to the comment below + # [signed ninad060920] at the same time. So I'm guessing it was unintended. + # But it's been in the program for so long that by now it might be intended + # behavior. However, since it makes the following code useless, and also + # slows down axis drawing, I'll treat it as a mistake and comment it out. + # [bruce 090310] + ## if env.prefs[displayPOVAxis_prefs_key]: + ## drawPointOfViewAxes(self.o.scale, -self.o.pov) # Draw the Point of View axis unless it is at the origin (0, 0, 0) AND draw origin as cross wire is true ninad060920 if env.prefs[displayPOVAxis_prefs_key]: |