Core: fix Std_Placement for multiple objects
This commit is contained in:
committed by
Kacper Donat
parent
4b9d1bb4e5
commit
b75b1508d4
@@ -1603,7 +1603,7 @@ void StdCmdPlacement::activated(int iMsg)
|
||||
bool StdCmdPlacement::isActive()
|
||||
{
|
||||
std::vector<App::DocumentObject*> sel = Gui::Selection().getObjectsOfType(App::GeoFeature::getClassTypeId());
|
||||
return (sel.size() == 1 && ! sel.front()->isFreezed());
|
||||
return !(sel.empty() || std::ranges::any_of(sel, [](auto obj){return obj->isFreezed();}));
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user