[Measure] Disable QuickMeasure for TechDraw, Spreadsheet, Part Container and Origin objects (#16225)

* [Measure] Disable QuickMeasure for TechDraw objects
* [Measure] Add spreadsheet, Part containers and origins to the exemptions
This commit is contained in:
Syres916
2024-09-08 22:50:26 +01:00
committed by GitHub
parent 553a78f50f
commit 1fc508651b

View File

@@ -122,7 +122,11 @@ void QuickMeasure::addSelectionToMeasurement()
std::string vpType = obj->getViewProviderName();
auto* vp = Gui::Application::Instance->getViewProvider(obj);
if (vpType == "SketcherGui::ViewProviderSketch" && vp->isEditing()) {
if ((vpType == "SketcherGui::ViewProviderSketch" && vp->isEditing())
|| vpType.find("Gui::ViewProviderOrigin") != std::string::npos
|| vpType.find("Gui::ViewProviderPart") != std::string::npos
|| vpType.find("SpreadsheetGui") != std::string::npos
|| vpType.find("TechDrawGui") != std::string::npos) {
continue;
}