diff --git a/cura/Machines/MachineNode.py b/cura/Machines/MachineNode.py index f39496ecc8d..67b8559b2e0 100644 --- a/cura/Machines/MachineNode.py +++ b/cura/Machines/MachineNode.py @@ -1,8 +1,9 @@ -# Copyright (c) 2019 Ultimaker B.V. +# Copyright (c) 2024 UltiMaker # Cura is released under the terms of the LGPLv3 or higher. from typing import Dict, List +from UM.Decorators import deprecated from UM.Logger import Logger from UM.Signal import Signal from UM.Util import parseBool @@ -175,6 +176,7 @@ def isExcludedMaterialBaseFile(self, material_base_file: str) -> bool: return True return False + @deprecated("Use isExcludedMaterialBaseFile instead.", since = "5.9.0") def isExcludedMaterial(self, material: MaterialNode) -> bool: """Returns whether the material should be excluded from the list of materials.""" return self.isExcludedMaterialBaseFile(material.base_file)