mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-30 10:05:42 +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):
|
def getActiveExtruder(self):
|
||||||
return self._extruder_stack
|
return self._extruder_stack
|
||||||
|
|
||||||
def _onSettingChanged(self, instance, property):
|
def _onSettingChanged(self, instance, attribute): # Reminder: 'property' is a built-in function
|
||||||
if property == "value": # Only reslice if the value has changed.
|
if attribute == "value": # Only reslice if the value has changed.
|
||||||
Application.getInstance().getBackend().forceSlice()
|
Application.getInstance().getBackend().forceSlice()
|
||||||
|
|
||||||
## Makes sure that the stack upon which the container stack is placed is
|
## Makes sure that the stack upon which the container stack is placed is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user