mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:39:09 +08:00
Override setNextStack in GlobalStack and raise an error if called
Since the global stack should never have a next stack Contributes to CURA-3497
This commit is contained in:
parent
b9f01b30c8
commit
0656dd53c3
@ -12,6 +12,9 @@ class GlobalStack(ContainerStack):
|
||||
def __init__(self, container_id, *args, **kwargs):
|
||||
super().__init__(container_id, *args, **kwargs)
|
||||
|
||||
def setNextStack(self, next_stack):
|
||||
raise CannotSetNextStackError("Global stack cannot have a next stack!")
|
||||
|
||||
global_stack_mime = MimeType(
|
||||
name = "application/x-cura-globalstack",
|
||||
comment = "Cura Global Stack",
|
||||
|
Loading…
x
Reference in New Issue
Block a user