From 77b7a29fca67de1f75a33403264b1f1bd75b4a3d Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 17 May 2021 17:54:13 +0200 Subject: [PATCH] Add source file type to anonymous usage statistics Contributes to issue CURA-8232. --- plugins/SliceInfoPlugin/SliceInfo.py | 5 +++++ plugins/SliceInfoPlugin/example_data.html | 1 + 2 files changed, 6 insertions(+) diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 6eed649cc7..977b9b809b 100755 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -229,6 +229,11 @@ class SliceInfo(QObject, Extension): model["model_settings"] = model_settings + if node.source_mime_type is None: + model["mime_type"] = "" + else: + model["mime_type"] = node.source_mime_type + data["models"].append(model) print_times = print_information.printTimes() diff --git a/plugins/SliceInfoPlugin/example_data.html b/plugins/SliceInfoPlugin/example_data.html index b349ec328d..5b97f1cba6 100644 --- a/plugins/SliceInfoPlugin/example_data.html +++ b/plugins/SliceInfoPlugin/example_data.html @@ -54,6 +54,7 @@
  • Bounding Box: [minimum x, y, z; maximum x, y, z]
  • Is Helper Mesh: no
  • Helper Mesh Type: support mesh
  • +
  • File type: STL