mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Removed unneeded application reference in construction of meshreaders
This commit is contained in:
parent
2b83af2497
commit
b4f59a7822
10 changed files with 23 additions and 19 deletions
|
@ -11,9 +11,8 @@ from UM.PluginRegistry import PluginRegistry
|
|||
#
|
||||
# If you're zipping g-code, you might as well use gzip!
|
||||
class GCodeGzReader(MeshReader):
|
||||
|
||||
def __init__(self, application):
|
||||
super().__init__(application)
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
self._supported_extensions = [".gcode.gz"]
|
||||
|
||||
def _read(self, file_name):
|
||||
|
|
|
@ -19,6 +19,7 @@ def getMetaData():
|
|||
]
|
||||
}
|
||||
|
||||
|
||||
def register(app):
|
||||
app.addNonSliceableExtension(".gz")
|
||||
return { "mesh_reader": GCodeGzReader.GCodeGzReader(app) }
|
||||
return {"mesh_reader": GCodeGzReader.GCodeGzReader()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue