mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Only try to get a new unique name when it already exists
CURA-4704
This commit is contained in:
parent
4f28dec884
commit
196bffd3ad
1 changed files with 2 additions and 1 deletions
|
@ -461,6 +461,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
global_stack_id_new = self.getNewId(global_stack_id_original)
|
global_stack_id_new = self.getNewId(global_stack_id_original)
|
||||||
global_stack_need_rename = True
|
global_stack_need_rename = True
|
||||||
|
|
||||||
|
if self._container_registry.findContainerStacksMetadata(name = global_stack_id_original):
|
||||||
global_stack_name_new = self._container_registry.uniqueName(global_stack_name_original)
|
global_stack_name_new = self._container_registry.uniqueName(global_stack_name_original)
|
||||||
|
|
||||||
for each_extruder_stack_file in extruder_stack_files:
|
for each_extruder_stack_file in extruder_stack_files:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue