RE: Allow to create planes from several selected meshes, remove ... from menu text

This commit is contained in:
wmayer
2023-11-13 10:38:08 +01:00
committed by wwmayer
parent 0294fa4329
commit ceeacb5f7d

View File

@@ -104,7 +104,7 @@ CmdApproxPlane::CmdApproxPlane()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Plane...");
sMenuText = QT_TR_NOOP("Plane");
sToolTipText = QT_TR_NOOP("Approximate a plane");
sWhatsThis = "Reen_ApproxPlane";
sStatusTip = sToolTipText;
@@ -199,7 +199,7 @@ void CmdApproxPlane::activated(int)
bool CmdApproxPlane::isActive()
{
if (getSelection().countObjectsOfType(App::GeoFeature::getClassTypeId()) == 1) {
if (getSelection().countObjectsOfType(App::GeoFeature::getClassTypeId()) > 0) {
return true;
}
return false;