mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:38:59 +08:00
CURA-3495 preRead() takes flexible arguments
This commit is contained in:
parent
ea16f967d7
commit
b35a97c770
@ -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…
x
Reference in New Issue
Block a user