From 41d03536eb2c175ce3dbdda522d338e73964c926 Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Sat, 11 Jun 2016 13:16:40 +0200 Subject: [PATCH] Using a save name for variable "property" Using "property" here might be not save. Just replaced that variable with "attribute" and added a reminder, so nobody renames it to "property" again. --- cura/SettingOverrideDecorator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/SettingOverrideDecorator.py b/cura/SettingOverrideDecorator.py index e3e3555016..7615dbe873 100644 --- a/cura/SettingOverrideDecorator.py +++ b/cura/SettingOverrideDecorator.py @@ -51,8 +51,8 @@ class SettingOverrideDecorator(SceneNodeDecorator): def getActiveExtruder(self): return self._extruder_stack - def _onSettingChanged(self, instance, property): - if property == "value": # Only reslice if the value has changed. + def _onSettingChanged(self, instance, attribute): # Reminder: 'property' is a built-in function + if attribute == "value": # Only reslice if the value has changed. Application.getInstance().getBackend().forceSlice() ## Makes sure that the stack upon which the container stack is placed is