mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-29 01:28:55 +08:00
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:
parent
67a3ae36a5
commit
41d03536eb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user