Draft: Do not show temporary line object in tree - fixes #13700

This commit is contained in:
Yorik van Havre
2024-05-02 11:04:15 +02:00
parent c4b5115f9e
commit aee2afdca7

View File

@@ -77,6 +77,7 @@ class Line(gui_base_original.Creator):
self.obj = self.doc.addObject("Part::Feature", self.featureName)
gui_utils.format_object(self.obj)
self.obj.ViewObject.ShowInTree = False
self.call = self.view.addEventCallback("SoEvent", self.action)
_toolmsg(translate("draft", "Pick first point"))