diff --git a/fFeatures.py b/fFeatures.py index b769794..0751f85 100644 --- a/fFeatures.py +++ b/fFeatures.py @@ -511,7 +511,10 @@ def changeProfile(self): name=FB.Profile.Name FB.Profile=profile FB.Proxy.redraw(FB) - FreeCAD.ActiveDocument.removeObject(name) + if self.SType == '': + profile.ViewObject.Visibility = False + else: + FreeCAD.ActiveDocument.removeObject(name) FreeCAD.ActiveDocument.recompute() FreeCAD.ActiveDocument.recompute() else: