mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 07:44:22 +08:00
Suggested changes
CURA-9412
This commit is contained in:
parent
dd3abf7ff0
commit
9aaf59ae86
@ -12,6 +12,7 @@ from UM.Application import Application
|
||||
from UM.Message import Message
|
||||
from UM.Resources import Resources
|
||||
from UM.Scene.SceneNode import SceneNode
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
from UM.Settings.EmptyInstanceContainer import EmptyInstanceContainer
|
||||
|
||||
from cura.CuraApplication import CuraApplication
|
||||
@ -269,7 +270,7 @@ class ThreeMFWriter(MeshWriter):
|
||||
# Don't export materials not in use
|
||||
continue
|
||||
|
||||
if type(extruder.material) is EmptyInstanceContainer:
|
||||
if isinstance(extruder.material, type(ContainerRegistry.getInstance().getEmptyInstanceContainer())):
|
||||
# This is an empty material container, no material to export
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user