In RemoveGroupWithContents(), make python dump before group removal
else
aMeshEditor->RemoveElements( anIds );
+ // Update Python script (theGroup must be alive for this)
+ pyDump << _this() << ".RemoveGroupWithContents( " << theGroup << " )";
+
// Remove group
RemoveGroup( theGroup );
-
- // Update Python script
- pyDump << _this() << ".RemoveGroupWithContents( " << theGroup << " )";
}
//================================================================================