mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 17:33:20 +08:00
Add documentation
CURA-2138
This commit is contained in:
parent
27b3bd829d
commit
d3a0c0fa77
@ -378,6 +378,9 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer):
|
|||||||
UM.Settings.ContainerRegistry.getInstance().addContainer(new_hotend_material)
|
UM.Settings.ContainerRegistry.getInstance().addContainer(new_hotend_material)
|
||||||
|
|
||||||
if not global_compatibility:
|
if not global_compatibility:
|
||||||
|
# Change the type of this container so it is not shown as an option in menus.
|
||||||
|
# This uses InstanceContainer.setMetaDataEntry because otherwise all containers that
|
||||||
|
# share this basefile are also updated.
|
||||||
super().setMetaDataEntry("type", "incompatible_material")
|
super().setMetaDataEntry("type", "incompatible_material")
|
||||||
|
|
||||||
def _addSettingElement(self, builder, instance):
|
def _addSettingElement(self, builder, instance):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user