diff options
author | Jaime van Kessel <nallath@gmail.com> | 2018-06-29 10:25:38 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2018-06-29 10:25:38 +0300 |
commit | b4f59a78226f83e2935cc06a82230d7f242e4613 (patch) | |
tree | 793f646e1cff889dc4062acaae341433716ec33b /plugins/X3DReader | |
parent | 2b83af24977f36af32d7dcff6641d1e63493244a (diff) |
Removed unneeded application reference in construction of meshreaders
Diffstat (limited to 'plugins/X3DReader')
-rw-r--r-- | plugins/X3DReader/X3DReader.py | 7 | ||||
-rw-r--r-- | plugins/X3DReader/__init__.py | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/X3DReader/X3DReader.py b/plugins/X3DReader/X3DReader.py index e57ec524db..44a2f1443a 100644 --- a/plugins/X3DReader/X3DReader.py +++ b/plugins/X3DReader/X3DReader.py @@ -26,8 +26,8 @@ except ImportError: DEFAULT_SUBDIV = 16 # Default subdivision factor for spheres, cones, and cylinders EPSILON = 0.000001 -class Shape: +class Shape: # Expects verts in MeshBuilder-ready format, as a n by 3 mdarray # with vertices stored in rows def __init__(self, verts, faces, index_base, name): @@ -37,9 +37,10 @@ class Shape: self.index_base = index_base self.name = name + class X3DReader(MeshReader): - def __init__(self, application): - super().__init__(application) + def __init__(self) -> None: + super().__init__() self._supported_extensions = [".x3d"] self._namespaces = {} diff --git a/plugins/X3DReader/__init__.py b/plugins/X3DReader/__init__.py index 03ed4ae301..624611ff02 100644 --- a/plugins/X3DReader/__init__.py +++ b/plugins/X3DReader/__init__.py @@ -15,5 +15,6 @@ def getMetaData(): ] } + def register(app): - return { "mesh_reader": X3DReader.X3DReader(app) } + return {"mesh_reader": X3DReader.X3DReader()} |