Skip to content

Commit

Permalink
Mark isExcludedMaterial as deprecated.
Browse files Browse the repository at this point in the history
done as part of CURA-11501
  • Loading branch information
rburema committed Aug 15, 2024
1 parent 922c8cc commit 268fd35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cura/Machines/MachineNode.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 268fd35

Please sign in to comment.