mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-5164 Make the mesh readers compliant with the new signature of the mesh reader. Also adapt the tests.
This commit is contained in:
parent
39768e29cc
commit
ddd7b056f3
10 changed files with 20 additions and 20 deletions
|
@ -44,8 +44,8 @@ except ImportError:
|
|||
|
||||
## Base implementation for reading 3MF files. Has no support for textures. Only loads meshes!
|
||||
class ThreeMFReader(MeshReader):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
def __init__(self, application):
|
||||
super().__init__(application)
|
||||
self._supported_extensions = [".3mf"]
|
||||
self._root = None
|
||||
self._base_name = ""
|
||||
|
@ -158,7 +158,7 @@ class ThreeMFReader(MeshReader):
|
|||
um_node.addDecorator(sliceable_decorator)
|
||||
return um_node
|
||||
|
||||
def read(self, file_name):
|
||||
def _read(self, file_name):
|
||||
result = []
|
||||
self._object_count = 0 # Used to name objects as there is no node name yet.
|
||||
# The base object of 3mf is a zipped archive.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue