Ensure that PerObjectContainer stack doesn't trigger a save

This commit is contained in:
Jaime van Kessel 2019-09-06 11:16:12 +02:00
parent 9d5ee286b4
commit db604cdd16
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -12,6 +12,10 @@ from .CuraContainerStack import CuraContainerStack
class PerObjectContainerStack(CuraContainerStack):
def isDirty(self):
# This stack should never be auto saved, so always return that there is nothing to save.
return False
@override(CuraContainerStack)
def getProperty(self, key: str, property_name: str, context: Optional[PropertyEvaluationContext] = None) -> Any:
if context is None: