Sketcher: Do not show support when entering sketch edit mode if it is a datum plane

=====================================================================================

https://forum.freecadweb.org/viewtopic.php?f=10&t=25700
This commit is contained in:
Abdullah Tahiri
2017-12-06 17:17:38 +01:00
committed by wmayer
parent 324c31d4e2
commit eb40ddda4e

View File

@@ -5160,7 +5160,7 @@ bool ViewProviderSketch::setEdit(int ModNum)
" objs = filter(lambda x: not x.TypeId.startswith(\"Drawing::\"), objs)\n"
" tv.hide(objs)\n"
"if ActiveSketch.ViewObject.ShowSupport:\n"
" tv.show([ref[0] for ref in ActiveSketch.Support])\n"
" tv.show([ref[0] for ref in ActiveSketch.Support if not ref[0].isDerivedFrom(\"PartDesign::Plane\")])\n"
"if ActiveSketch.ViewObject.ShowLinks:\n"
" tv.show([ref[0] for ref in ActiveSketch.ExternalGeometry])\n"
"tv.hide(ActiveSketch)\n"