diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-05-23 18:17:41 +0300 |
---|---|---|
committer | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-05-23 18:17:41 +0300 |
commit | ddd7b056f387c9bb1a68e4952deac5b783ef723e (patch) | |
tree | 3f2f65e8390348685d23ad34cc0c95efb7bff6d9 /plugins/X3DReader | |
parent | 39768e29cc10e09c1eb3fbb304739b1d4ef162ca (diff) |
CURA-5164 Make the mesh readers compliant with the new signature of the mesh reader. Also adapt the tests.
Diffstat (limited to 'plugins/X3DReader')
-rw-r--r-- | plugins/X3DReader/X3DReader.py | 6 | ||||
-rw-r--r-- | plugins/X3DReader/__init__.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/X3DReader/X3DReader.py b/plugins/X3DReader/X3DReader.py index b0b9e00a5b..e57ec524db 100644 --- a/plugins/X3DReader/X3DReader.py +++ b/plugins/X3DReader/X3DReader.py @@ -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 = [] diff --git a/plugins/X3DReader/__init__.py b/plugins/X3DReader/__init__.py index 9e0e2df91c..03ed4ae301 100644 --- a/plugins/X3DReader/__init__.py +++ b/plugins/X3DReader/__init__.py @@ -16,4 +16,4 @@ def getMetaData(): } def register(app): - return { "mesh_reader": X3DReader.X3DReader() } + return { "mesh_reader": X3DReader.X3DReader(app) } |