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:
authorIan Paschal <ian.paschal@gmail.com>2018-07-05 16:45:48 +0300
committerIan Paschal <ian.paschal@gmail.com>2018-07-05 16:45:48 +0300
commit2f8debc985d0425da4244f5bc2284f20b28bc6f2 (patch)
tree09d2aa5d954d3b3a5246145aa06b66ac0af7f11b /plugins/GCodeReader
parent9ec5770a1c2f64c50aee6a279645320e5bff8fe0 (diff)
Fixes for FlavorParser
Diffstat (limited to 'plugins/GCodeReader')
-rw-r--r--plugins/GCodeReader/FlavorParser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/GCodeReader/FlavorParser.py b/plugins/GCodeReader/FlavorParser.py
index 05f40b41e7..ead527a61f 100644
--- a/plugins/GCodeReader/FlavorParser.py
+++ b/plugins/GCodeReader/FlavorParser.py
@@ -286,7 +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()
- self._filament_diameter = global_stack.extruders[str(self._extruder_number)].getProperty("material_diameter", "value")
+
+ if global_stack:
+ self._filament_diameter = global_stack.extruders[str(self._extruder_number)].getProperty("material_diameter", "value")
scene_node = CuraSceneNode()