Salome HOME
Fix for the issue #2430 : faces not named in group and field after import XAO
authormpv <mpv@opencascade.com>
Tue, 13 Feb 2018 12:18:51 +0000 (15:18 +0300)
committermpv <mpv@opencascade.com>
Tue, 13 Feb 2018 12:18:51 +0000 (15:18 +0300)
src/Model/Model_Document.cpp

index 78afb82aac58214bc4d42c4b69288062cbc66b64..ebc01b3e6bf82f7a6b39bea9b5d2d1dcd23cff39 100755 (executable)
@@ -1146,7 +1146,8 @@ void Model_Document::setCurrentFeature(
         aDisabledFlag = false;
       else if (anOwners.find(anIter) != anOwners.end())
         // disable the higher-level feature if the nested is the current
-        aDisabledFlag = true;
+        if (aMain->getKind() != "Import") // exception for the import XAO feature with Group (2430)
+          aDisabledFlag = true;
     }
 
     if (anIter->getKind() == "Parameter") {