Add template based SelectionSingleton::countObjectsOfType
Also convert code to use this new method
This commit is contained in:
@@ -486,7 +486,7 @@ void CmdPartDesignClone::activated(int iMsg)
|
||||
|
||||
bool CmdPartDesignClone::isActive()
|
||||
{
|
||||
return getSelection().countObjectsOfType(Part::Feature::getClassTypeId()) == 1;
|
||||
return getSelection().countObjectsOfType<Part::Feature>() == 1;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user