mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -06:00
CURA-4606 fix startup crash
This commit is contained in:
parent
3619f5aef3
commit
b2ca8565c9
1 changed files with 3 additions and 3 deletions
|
@ -936,8 +936,8 @@ class BuildVolume(SceneNode):
|
||||||
# stack.
|
# stack.
|
||||||
#
|
#
|
||||||
# \return A sequence of setting values, one for each extruder.
|
# \return A sequence of setting values, one for each extruder.
|
||||||
def _getSettingFromAllExtruders(self, setting_key, property = "value"):
|
def _getSettingFromAllExtruders(self, setting_key):
|
||||||
all_values = ExtruderManager.getInstance().getAllExtruderSettings(setting_key, property)
|
all_values = ExtruderManager.getInstance().getAllExtruderSettings(setting_key, "value")
|
||||||
all_types = ExtruderManager.getInstance().getAllExtruderSettings(setting_key, "type")
|
all_types = ExtruderManager.getInstance().getAllExtruderSettings(setting_key, "type")
|
||||||
for i in range(len(all_values)):
|
for i in range(len(all_values)):
|
||||||
if not all_values[i] and (all_types[i] == "int" or all_types[i] == "float"):
|
if not all_values[i] and (all_types[i] == "int" or all_types[i] == "float"):
|
||||||
|
@ -950,7 +950,7 @@ class BuildVolume(SceneNode):
|
||||||
# not part of the collision radius, such as bed adhesion (skirt/brim/raft)
|
# not part of the collision radius, such as bed adhesion (skirt/brim/raft)
|
||||||
# and travel avoid distance.
|
# and travel avoid distance.
|
||||||
def _getEdgeDisallowedSize(self):
|
def _getEdgeDisallowedSize(self):
|
||||||
if not self._global_container_stack:
|
if not self._global_container_stack or not self._global_container_stack.extruders:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
container_stack = self._global_container_stack
|
container_stack = self._global_container_stack
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue