Fix crash when loading multi-extrusion print

Because getProperty needs a property to get.
This commit is contained in:
Ghostkeeper 2019-07-01 14:55:46 +02:00
parent a7d419f497
commit ea93490c45
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -791,7 +791,7 @@ class BuildVolume(SceneNode):
result[extruder.getId()] = []
# Currently, the only normally printed object is the prime tower.
if self._global_container_stack.getProperty("prime_tower_enable"):
if self._global_container_stack.getProperty("prime_tower_enable", "value"):
prime_tower_size = self._global_container_stack.getProperty("prime_tower_size", "value")
machine_width = self._global_container_stack.getProperty("machine_width", "value")
machine_depth = self._global_container_stack.getProperty("machine_depth", "value")