From 0579052cbc5d559edfc0b4de539de2abcf104be6 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 3 Dec 2021 20:18:46 +0100 Subject: [PATCH] PD: comment out dead code --- src/Mod/PartDesign/Gui/ReferenceSelection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp index 67478b0840..bf585c598e 100644 --- a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp +++ b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp @@ -132,12 +132,15 @@ bool ReferenceSelection::allow(App::Document* pDoc, App::DocumentObject* pObj, c return false; } + // The flag was used to be set. So, this block will never be treated and doesn't make really sense anyway +#if 0 if (!type.testFlag(AllowSelection::OTHERBODY)) { if (support == NULL) return false; if (pObj != support) return false; } +#endif // Handle selection of geometry elements if (!sSubName || sSubName[0] == '\0') return type.testFlag(AllowSelection::WHOLE);