mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-19 09:10:47 +08:00
Generate unique names for definition changes containers
CURA-4107
This commit is contained in:
parent
6e06837084
commit
f95bd1b47f
@ -166,7 +166,10 @@ class CuraStackBuilder:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def createDefinitionChangesContainer(cls, container_stack, container_name, container_index = None):
|
def createDefinitionChangesContainer(cls, container_stack, container_name, container_index = None):
|
||||||
from cura.CuraApplication import CuraApplication
|
from cura.CuraApplication import CuraApplication
|
||||||
definition_changes_container = InstanceContainer(container_name)
|
|
||||||
|
unique_container_name = ContainerRegistry.getInstance().uniqueName(container_name)
|
||||||
|
|
||||||
|
definition_changes_container = InstanceContainer(unique_container_name)
|
||||||
definition = container_stack.getBottom()
|
definition = container_stack.getBottom()
|
||||||
definition_changes_container.setDefinition(definition)
|
definition_changes_container.setDefinition(definition)
|
||||||
definition_changes_container.addMetaDataEntry("type", "definition_changes")
|
definition_changes_container.addMetaDataEntry("type", "definition_changes")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user