]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Add color on group during impot Step file
authorJérôme <jerome.lucas@cesgenslab.fr>
Wed, 14 Oct 2020 18:26:56 +0000 (20:26 +0200)
committerJérôme <jerome.lucas@cesgenslab.fr>
Wed, 14 Oct 2020 18:26:56 +0000 (20:26 +0200)
src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp

index 2049662d1356638df169d9b991c643d331ef31f4..5419e5ec8422aec69623f1d04816ab7d7d8ff130 100644 (file)
@@ -299,6 +299,10 @@ void ExchangePlugin_ImportFeature::setColorGroup(std::shared_ptr<ModelAPI_Result
     }
   }
 
+  // Create the group in the document to be able to set its color
+  ResultPtr aGroup = document()->createGroup(aGroupFeature->data());
+  aGroupFeature->setResult(aGroup);
+
   ModelAPI_Tools::setColor(aGroupFeature->lastResult(),theColor);
 
   if (aSelectionList->size() == 0 ){