From e5a17cd601bfad8bb58502cbdddcfdcf47f4936d Mon Sep 17 00:00:00 2001 From: Gerardo Tauriello <gerardo.tauriello@unibas.ch> Date: Fri, 27 Apr 2018 21:53:40 +0200 Subject: [PATCH] Fix: keep entity name when molcking. --- modules/mol/alg/src/molck.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mol/alg/src/molck.cc b/modules/mol/alg/src/molck.cc index e1c35083f..294e996b9 100644 --- a/modules/mol/alg/src/molck.cc +++ b/modules/mol/alg/src/molck.cc @@ -10,7 +10,8 @@ using namespace ost::mol; void ost::mol::alg::MapNonStandardResidues(EntityHandle& ent, CompoundLibPtr lib) { // TODO: Maybe it is possible to make it in-place operation - EntityHandle new_ent=CreateEntity(); + EntityHandle new_ent=CreateEntity(); + new_ent.SetName(ent.GetName()); ChainHandleList chains=ent.GetChainList(); XCSEditor new_edi=new_ent.EditXCS(); for (ChainHandleList::const_iterator c=chains.begin();c!=chains.end();++c) { -- GitLab