From ff8ea205db86d69800ddaa50cd4ec18b9e430013 Mon Sep 17 00:00:00 2001 From: burnsypet Date: Thu, 13 Dec 2018 20:34:00 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20extra=20(=CE=B1)=20from=20clone=20name?= =?UTF-8?q?=20when=20renaming?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui/characterEditor.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/characterEditor.py b/gui/characterEditor.py index 6fe7c809a..2b4d59341 100644 --- a/gui/characterEditor.py +++ b/gui/characterEditor.py @@ -129,7 +129,12 @@ class CharacterEntityEditor(EntityEditor): def DoRename(self, entity, name): sChar = Character.getInstance() - sChar.rename(entity, name) + + if entity.alphaCloneID: + trimmed_name = re.sub('[ \(\u03B1\)]+$', '', name) + sChar.rename(entity, trimmed_name) + else: + sChar.rename(entity, name) def DoCopy(self, entity, name): sChar = Character.getInstance()