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

This commit is contained in:
Jack Ha 2017-03-02 16:44:40 +01:00
parent d04e630497
commit bedb41b6d3

View file

@ -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(): if node.callDecoration("isSliceable"):
continue modelhashes.append(node.getMeshData().getHash())
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)