mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Suggested changes
CURA-9412
This commit is contained in:
parent
dd3abf7ff0
commit
9aaf59ae86
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue