[TD]fix scene and tree selection sync

This commit is contained in:
wandererfan
2024-06-17 09:00:01 -04:00
committed by WandererFan
parent 27c61ef137
commit 2ca9b6ef80
5 changed files with 68 additions and 8 deletions

View File

@@ -727,6 +727,17 @@ bool DrawGuiUtil::findObjectInSelection(const std::vector<Gui::SelectionObject>&
return false;
}
std::vector<std::string> DrawGuiUtil::getSubsForSelectedObject(const std::vector<Gui::SelectionObject>& selection,
App::DocumentObject* selectedObj)
{
for (auto& selObj : selection) {
if (selectedObj == selObj.getObject()) {
return selObj.getSubNames();
}
}
return {};
}
bool DrawGuiUtil::isStyleSheetDark(std::string curStyleSheet)
{
if (curStyleSheet.find("dark") != std::string::npos ||