mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 07:45:56 +08:00
Merge pull request #9856 from Ultimaker/CURA-8232_measure_file_type_usage
Add source file type to anonymous usage statistics
This commit is contained in:
commit
0e95a4612a
@ -1867,6 +1867,7 @@ class CuraApplication(QtApplication):
|
||||
else:
|
||||
node = CuraSceneNode()
|
||||
node.setMeshData(original_node.getMeshData())
|
||||
node.source_mime_type = original_node.source_mime_type
|
||||
|
||||
# Setting meshdata does not apply scaling.
|
||||
if original_node.getScale() != Vector(1.0, 1.0, 1.0):
|
||||
|
@ -142,6 +142,7 @@ class CuraSceneNode(SceneNode):
|
||||
copy.setTransformation(self.getLocalTransformation(copy= False))
|
||||
copy.setMeshData(self._mesh_data)
|
||||
copy.setVisible(cast(bool, deepcopy(self._visible, memo)))
|
||||
copy.source_mime_type = cast(str, deepcopy(self.source_mime_type, memo))
|
||||
copy._selectable = cast(bool, deepcopy(self._selectable, memo))
|
||||
copy._name = cast(str, deepcopy(self._name, memo))
|
||||
for decorator in self._decorators:
|
||||
|
@ -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.name
|
||||
|
||||
data["models"].append(model)
|
||||
|
||||
print_times = print_information.printTimes()
|
||||
|
@ -54,6 +54,7 @@
|
||||
<li><b>Bounding Box:</b> [minimum x, y, z; maximum x, y, z]</li>
|
||||
<li><b>Is Helper Mesh:</b> no</li>
|
||||
<li><b>Helper Mesh Type:</b> support mesh</li>
|
||||
<li><b>File type:</b> STL</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user