Просмотр исходного кода

SliceInfo now only sends sliceable model hashes (layer data was also sent)

Jack Ha 8 лет назад
Родитель
Сommit
bedb41b6d3
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      plugins/SliceInfoPlugin/SliceInfo.py

+ 2 - 3
plugins/SliceInfoPlugin/SliceInfo.py

@@ -90,9 +90,8 @@ class SliceInfo(Extension):
             # Listing all files placed on the buildplate
             modelhashes = []
             for node in DepthFirstIterator(CuraApplication.getInstance().getController().getScene().getRoot()):
-                if type(node) is not SceneNode or not node.getMeshData():
-                    continue
-                modelhashes.append(node.getMeshData().getHash())
+                if node.callDecoration("isSliceable"):
+                    modelhashes.append(node.getMeshData().getHash())
 
             # Creating md5sums and formatting them as discussed on JIRA
             modelhash_formatted = ",".join(modelhashes)