diff --git a/src/SMESHDS/SMESHDS_Script.cxx b/src/SMESHDS/SMESHDS_Script.cxx index f8d3aff53..57baf301c 100644 --- a/src/SMESHDS/SMESHDS_Script.cxx +++ b/src/SMESHDS/SMESHDS_Script.cxx @@ -143,9 +143,9 @@ void SMESHDS_Script::AddVolume(int NewID, else { com = myCommands.back(); - if (com->GetType() != SMESHDS_AddQuadrangle) + if (com->GetType() != SMESHDS_AddTetrahedron) { - com = new SMESHDS_Command(SMESHDS_AddQuadrangle); + com = new SMESHDS_Command(SMESHDS_AddTetrahedron); myCommands.insert(myCommands.end(),com); } }