Skip nodes in modelchecker without active extruder

Fixes CURA-5S
This commit is contained in:
Jaime van Kessel 2020-02-28 13:56:16 +01:00
parent e4930d3c3b
commit 68d70734ee
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -73,6 +73,8 @@ class ModelChecker(QObject, Extension):
# Check node material shrinkage and bounding box size # Check node material shrinkage and bounding box size
for node in self.sliceableNodes(): for node in self.sliceableNodes():
node_extruder_position = node.callDecoration("getActiveExtruderPosition") node_extruder_position = node.callDecoration("getActiveExtruderPosition")
if node_extruder_position is None:
continue
# This function can be triggered in the middle of a machine change, so do not proceed if the machine change # This function can be triggered in the middle of a machine change, so do not proceed if the machine change
# has not done yet. # has not done yet.