mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:19:00 +08:00
Fix adding materials in UFP
CURA-5555 Need to use getContainer() for a MaterialNode.
This commit is contained in:
parent
939484bc91
commit
8f5aa82bdb
@ -90,7 +90,7 @@ class UFPWriter(MeshWriter):
|
||||
Logger.log("e", "Cannot find material container with root id [%s]", material_root_id)
|
||||
return False
|
||||
|
||||
material_container = material_group.root_material_node
|
||||
material_container = material_group.root_material_node.getContainer()
|
||||
try:
|
||||
serialized_material = material_container.serialize()
|
||||
except NotImplementedError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user