Commit e7894e5b authored by sumpfralle's avatar sumpfralle

r574@erker: lars | 2010-02-04 03:02:46 +0100

 "reset bounds" should not go below ground (minz=0)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@97 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 61c43743
......@@ -205,7 +205,8 @@ class ProjectGui:
zwidth = self.model.maxz - self.model.minz
self.settings.set("minx", self.model.minx - 0.1 * xwidth)
self.settings.set("miny", self.model.miny - 0.1 * ywidth)
self.settings.set("minz", self.model.minz - 0.1 * zwidth)
# don't go below ground
self.settings.set("minz", self.model.minz)
self.settings.set("maxx", self.model.maxx + 0.1 * xwidth)
self.settings.set("maxy", self.model.maxy + 0.1 * ywidth)
self.settings.set("maxz", self.model.maxz + 0.1 * zwidth)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment