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.
This commit is contained in:
Thomas Karl Pietrowski 2016-06-11 13:16:40 +02:00
parent 67a3ae36a5
commit 41d03536eb

View File

@ -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