mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
CURA-3495 preRead() takes flexible arguments
This commit is contained in:
parent
ea16f967d7
commit
b35a97c770
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class ImageReader(MeshReader):
|
|||
self._supported_extensions = [".jpg", ".jpeg", ".bmp", ".gif", ".png"]
|
||||
self._ui = ImageReaderUI(self)
|
||||
|
||||
def preRead(self, file_name):
|
||||
def preRead(self, file_name, *args, **kwargs):
|
||||
img = QImage(file_name)
|
||||
|
||||
if img.isNull():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue