Salome HOME
Revert "[EDF] (2023-T1) Filters on group"
[modules/shaper.git] / src / ConnectorPlugin / ConnectorPlugin_ExportFeature.py
index 34bde32ecff116ad966fafd2f65583cb6210cd32..fe08b8e00e01e9f4c62fd9efe14cbf27816f29bb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -61,13 +61,16 @@ class ExportFeature(ModelAPI.ModelAPI_Feature):
     def exportViaXAO(self):
         # if part-set is active, iterate also parts
         for isPart in (True, False):
-          aResultType = model.ModelAPI_ResultBody_group()
+          aResultType = model.ModelAPI_ResultBody.group()
           if isPart:
-            aResultType = model.ModelAPI_ResultPart_group()
+            aResultType = model.ModelAPI_ResultPart.group()
           # iterate all results of Part, export one by one due to issue 2882
           for aResIndex in range(self.Part.size(aResultType)):
             anObject = self.Part.object(aResultType, aResIndex)
             aResult = model.objectToResult(anObject)
+            # do not export picture
+            if aResult.hasTexture() is True:
+              continue
             if not aResult is None:
               if (not aResult.shape() or aResult.shape().isNull()) and isPart:
                 aPart = model.modelAPI_ResultPart(aResult)