mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
WIP: Fix material QVariant type
This commit is contained in:
parent
3fffc2c621
commit
2cd9891000
@ -161,7 +161,7 @@ class ContainerManager(QObject):
|
||||
return container.getProperty(setting_key, property_name)
|
||||
|
||||
## Set the name of the specified material.
|
||||
@pyqtSlot(QObject, str)
|
||||
@pyqtSlot("QVariant", str)
|
||||
def setMaterialName(self, material_node, new_name):
|
||||
root_material_id = material_node.metadata["base_file"]
|
||||
if self._container_registry.isReadOnly(root_material_id):
|
||||
|
Loading…
x
Reference in New Issue
Block a user