Browse Source

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

Jack Ha 8 years ago
parent
commit
bedb41b6d3
1 changed files with 2 additions and 3 deletions
  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
             # Listing all files placed on the buildplate
             modelhashes = []
             modelhashes = []
             for node in DepthFirstIterator(CuraApplication.getInstance().getController().getScene().getRoot()):
             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
             # Creating md5sums and formatting them as discussed on JIRA
             modelhash_formatted = ",".join(modelhashes)
             modelhash_formatted = ",".join(modelhashes)