Added preference to show UFP saving dialog

Changes saving to .ucp to .3mf
This commit is contained in:
saumya.jain 2024-02-16 14:11:07 +01:00
parent 80d7536763
commit b641741e49
8 changed files with 48 additions and 9 deletions

View file

@ -50,11 +50,11 @@ class ThreeMFReader(MeshReader):
MimeType(
name="application/x-ucp",
comment="UCP",
suffixes=["ucp"]
suffixes=["3mf"]
)
)
self._supported_extensions = [".3mf", ".ucp"]
self._supported_extensions = [".3mf"]
self._root = None
self._base_name = ""
self._unit = None

View file

@ -113,7 +113,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
def __init__(self) -> None:
super().__init__()
self._supported_extensions = [".3mf", ".ucp"]
self._supported_extensions = [".3mf"]
self._dialog = WorkspaceDialog()
self._3mf_mesh_reader = None
self._container_registry = ContainerRegistry.getInstance()
@ -236,7 +236,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
# Check whether the file is a UCP, which changes some import options
#FIXME Instead of this, we should just check for the presence of the user-settings file, whatever the extension
is_ucp = file_name.endswith('.ucp')
is_ucp = file_name.endswith('.3mf')
#
# Read definition containers

View file

@ -2,7 +2,7 @@
"name": "3MF Reader",
"author": "Ultimaker B.V.",
"version": "1.0.1",
"description": "Provides support for reading 3MF and UCP files.",
"description": "Provides support for reading 3MF files.",
"api": 8,
"i18n-catalog": "cura"
}