mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:56:01 +08:00
Merge pull request #792 from thopiekar/master-code-cleanup
[master] code cleanup
This commit is contained in:
commit
d4f59b0086
@ -199,7 +199,6 @@ class BuildVolume(SceneNode):
|
|||||||
disallowed_areas = self._active_container_stack.getProperty("machine_disallowed_areas", "value")
|
disallowed_areas = self._active_container_stack.getProperty("machine_disallowed_areas", "value")
|
||||||
areas = []
|
areas = []
|
||||||
|
|
||||||
skirt_size = 0.0
|
|
||||||
skirt_size = self._getSkirtSize(self._active_container_stack)
|
skirt_size = self._getSkirtSize(self._active_container_stack)
|
||||||
|
|
||||||
if disallowed_areas:
|
if disallowed_areas:
|
||||||
|
@ -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, property_name): # Reminder: 'property' is a built-in function
|
||||||
if property == "value": # Only reslice if the value has changed.
|
if property_name == "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