def spline_edit(self): if self.is_edit: self.current_airfoil.apply_splines() self.unset_edit_mode() self.update_airfoil() else: if not isinstance(self.current_airfoil, BezierProfile2D): self.current_airfoil = BezierProfile2D.from_profile_2d(self.current_airfoil) self.update_selection() self.set_edit_mode()
def spline_edit(self): if self.is_edit: self.current_airfoil.apply_splines() self.unset_edit_mode() self.update_airfoil() else: if not isinstance(self.current_airfoil, BezierProfile2D): self.current_airfoil = BezierProfile2D.from_profile_2d( self.current_airfoil) self.update_selection() self.set_edit_mode()