mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-02 19:43:57 -06:00
Remove unused code
CURA-4672
This commit is contained in:
parent
4685230d8d
commit
9cb7050681
1 changed files with 2 additions and 3 deletions
|
@ -42,7 +42,7 @@ class PlatformPhysics:
|
||||||
def _onSceneChanged(self, source):
|
def _onSceneChanged(self, source):
|
||||||
self._change_timer.start()
|
self._change_timer.start()
|
||||||
|
|
||||||
def _onChangeTimerFinished(self, was_triggered_by_tool=False):
|
def _onChangeTimerFinished(self):
|
||||||
if not self._enabled:
|
if not self._enabled:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -58,7 +58,6 @@ class PlatformPhysics:
|
||||||
|
|
||||||
# Only check nodes inside build area.
|
# Only check nodes inside build area.
|
||||||
nodes = [node for node in nodes if (hasattr(node, "_outside_buildarea") and not node._outside_buildarea)]
|
nodes = [node for node in nodes if (hasattr(node, "_outside_buildarea") and not node._outside_buildarea)]
|
||||||
active_build_plate = Application.getInstance().getBuildPlateModel().activeBuildPlate
|
|
||||||
|
|
||||||
random.shuffle(nodes)
|
random.shuffle(nodes)
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
|
@ -181,4 +180,4 @@ class PlatformPhysics:
|
||||||
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)
|
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)
|
||||||
|
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
self._onChangeTimerFinished(True)
|
self._onChangeTimerFinished()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue