RE: Allow to create planes from several selected meshes, remove ... from menu text
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user