mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37: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
|
@ -38,14 +38,14 @@ class Shape:
|
|||
self.name = name
|
||||
|
||||
class X3DReader(MeshReader):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
def __init__(self, application):
|
||||
super().__init__(application)
|
||||
self._supported_extensions = [".x3d"]
|
||||
self._namespaces = {}
|
||||
|
||||
# Main entry point
|
||||
# Reads the file, returns a SceneNode (possibly with nested ones), or None
|
||||
def read(self, file_name):
|
||||
def _read(self, file_name):
|
||||
try:
|
||||
self.defs = {}
|
||||
self.shapes = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue