Add a cache for settable_per_extruder property

This commit is contained in:
Jaime van Kessel 2020-08-14 14:51:46 +02:00
parent 51737dccd6
commit 9c904f95ce
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 13 additions and 1 deletions

View file

@ -192,7 +192,7 @@ class GlobalStack(CuraContainerStack):
self._extruders[position] = extruder
self.extrudersChanged.emit()
Logger.log("i", "Extruder[%s] added to [%s] at position [%s]", extruder.id, self.id, position)
@override(ContainerStack)
def getProperty(self, key: str, property_name: str, context: Optional[PropertyEvaluationContext] = None) -> Any:
"""Overridden from ContainerStack