mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Added preference to show UFP saving dialog
Changes saving to .ucp to .3mf
This commit is contained in:
parent
80d7536763
commit
b641741e49
8 changed files with 48 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue