Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-07-05 15:35:12 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-07-05 15:35:12 +0300
commitc738f306fb25ff8cbef1d817ca46c9e544c122f2 (patch)
tree6312edac4813553c9441eefc68267995162a9f03 /plugins/GCodeReader
parentab339e7784f514d6250d76e01bc73f439296c473 (diff)
Fix style in some components
Diffstat (limited to 'plugins/GCodeReader')
-rw-r--r--plugins/GCodeReader/FlavorParser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/GCodeReader/FlavorParser.py b/plugins/GCodeReader/FlavorParser.py
index 05f40b41e7..990bd98fb5 100644
--- a/plugins/GCodeReader/FlavorParser.py
+++ b/plugins/GCodeReader/FlavorParser.py
@@ -286,6 +286,9 @@ class FlavorParser:
self._cancelled = False
# We obtain the filament diameter from the selected extruder to calculate line widths
global_stack = CuraApplication.getInstance().getGlobalContainerStack()
+ if not global_stack:
+ return None
+
self._filament_diameter = global_stack.extruders[str(self._extruder_number)].getProperty("material_diameter", "value")
scene_node = CuraSceneNode()