mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:35:53 +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)
|
Logger.log("e", "Cannot find material container with root id [%s]", material_root_id)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
material_container = material_group.root_material_node
|
material_container = material_group.root_material_node.getContainer()
|
||||||
try:
|
try:
|
||||||
serialized_material = material_container.serialize()
|
serialized_material = material_container.serialize()
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user