Commit 06abd928 authored by Guillaume Seguin's avatar Guillaume Seguin

Correctly reset cutter UI after a cut

parent 60c1da4c
...@@ -306,6 +306,13 @@ class StlPlater(Plater): ...@@ -306,6 +306,13 @@ class StlPlater(Plater):
self.s.prepare_model(cut, 2) self.s.prepare_model(cut, 2)
self.models[name] = cut self.models[name] = cut
self.cutconfirmbutton.Disable() self.cutconfirmbutton.Disable()
self.cutting = False
self.cutting_axis = None
self.cutting_dist = None
self.cutting_direction = None
for child in self.cutsizer.GetChildren():
child = child.GetWindow()
child.SetValue(False)
def clickcb(self, event, single = False): def clickcb(self, event, single = False):
if not isinstance(self.s, stlview.StlViewPanel): if not isinstance(self.s, stlview.StlViewPanel):
......
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