mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Rename variable for code style
The code style specifies using lowercase with underscores. Contributes to issue CURA-864.
This commit is contained in:
parent
0989f8ced7
commit
c50c223124
1 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ class ProcessSlicedObjectListJob(Job):
|
||||||
self._message = message
|
self._message = message
|
||||||
self._scene = Application.getInstance().getController().getScene()
|
self._scene = Application.getInstance().getController().getScene()
|
||||||
self._progress = None
|
self._progress = None
|
||||||
self._abortRequested = False
|
self._abort_requested = False
|
||||||
|
|
||||||
## Aborts the processing of layers.
|
## Aborts the processing of layers.
|
||||||
#
|
#
|
||||||
|
@ -33,14 +33,14 @@ class ProcessSlicedObjectListJob(Job):
|
||||||
# requested and then stop processing by itself. There is no guarantee
|
# requested and then stop processing by itself. There is no guarantee
|
||||||
# that the abort will stop the job any time soon or even at all.
|
# that the abort will stop the job any time soon or even at all.
|
||||||
def abort(self):
|
def abort(self):
|
||||||
self._abortRequested = True
|
self._abort_requested = True
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if Application.getInstance().getController().getActiveView().getPluginId() == "LayerView":
|
if Application.getInstance().getController().getActiveView().getPluginId() == "LayerView":
|
||||||
self._progress = Message(catalog.i18nc("@info:status", "Processing Layers"), 0, False, -1)
|
self._progress = Message(catalog.i18nc("@info:status", "Processing Layers"), 0, False, -1)
|
||||||
self._progress.show()
|
self._progress.show()
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
if self._abortRequested:
|
if self._abort_requested:
|
||||||
if self._progress:
|
if self._progress:
|
||||||
self._progress.hide()
|
self._progress.hide()
|
||||||
return
|
return
|
||||||
|
@ -57,7 +57,7 @@ class ProcessSlicedObjectListJob(Job):
|
||||||
else:
|
else:
|
||||||
object_id_map[id(node)] = node
|
object_id_map[id(node)] = node
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
if self._abortRequested:
|
if self._abort_requested:
|
||||||
if self._progress:
|
if self._progress:
|
||||||
self._progress.hide()
|
self._progress.hide()
|
||||||
return
|
return
|
||||||
|
@ -113,7 +113,7 @@ class ProcessSlicedObjectListJob(Job):
|
||||||
# TODO: Rebuild the layer data mesh once the layer has been processed.
|
# TODO: Rebuild the layer data mesh once the layer has been processed.
|
||||||
# This needs some work in LayerData so we can add the new layers instead of recreating the entire mesh.
|
# This needs some work in LayerData so we can add the new layers instead of recreating the entire mesh.
|
||||||
|
|
||||||
if self._abortRequested:
|
if self._abort_requested:
|
||||||
if self._progress:
|
if self._progress:
|
||||||
self._progress.hide()
|
self._progress.hide()
|
||||||
return
|
return
|
||||||
|
@ -123,7 +123,7 @@ class ProcessSlicedObjectListJob(Job):
|
||||||
# We are done processing all the layers we got from the engine, now create a mesh out of the data
|
# We are done processing all the layers we got from the engine, now create a mesh out of the data
|
||||||
layer_data.build()
|
layer_data.build()
|
||||||
|
|
||||||
if self._abortRequested:
|
if self._abort_requested:
|
||||||
if self._progress:
|
if self._progress:
|
||||||
self._progress.hide()
|
self._progress.hide()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue