From 83afcf57d8aa8127b5537a5344c0138cf30db39b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 26 Jan 2019 21:26:19 -0500 Subject: [PATCH] Better single user name generation --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index fa976d8..0763561 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -184,7 +184,7 @@ class MaterialConverter: # that's a special case as of the writing of this code. single_user = self._requires_single_user_material(bo, bm) if single_user: - mat_name = "{}_{}".format(bo.name, bm.name) + mat_name = "{}_AutoSingle".format(bm.name) if bo.name == bm.name else "{}_{}".format(bo.name, bm.name) self._report.msg("Exporting Material '{}' as single user '{}'", bm.name, mat_name, indent=1) hgmat = None else: