Commit 84d5f14b authored by Guillaume Seguin's avatar Guillaume Seguin

Fix center computation in platers "center" function

parent 2cb00a4c
......@@ -217,7 +217,9 @@ class Plater(wx.Frame):
i = self.l.GetSelection()
if i != -1:
m = self.models[self.l.GetString(i)]
m.offsets = [100, 100, m.offsets[2]]
centerx = self.build_dimensions[0] / 2 + self.build_dimensions[3]
centery = self.build_dimensions[1] / 2 + self.build_dimensions[4]
m.offsets = [centerx, centery, m.offsets[2]]
self.Refresh()
def snap(self, event):
......
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