Turn unnecessary class into namespace
(cherry picked from commit 34165c7b2b
)
This commit is contained in:
parent
630ede144c
commit
ea59c387d2
@ -538,7 +538,7 @@ init python:
|
||||
# Grab data
|
||||
if fromfile:
|
||||
try:
|
||||
imported = ImagePayload().extract(path)
|
||||
imported = image_payload.extract(path)
|
||||
except Exception as e:
|
||||
renpy.notify("Import failed: Corrupted file.")
|
||||
print(e)
|
||||
|
@ -222,7 +222,7 @@ init python:
|
||||
)
|
||||
|
||||
displayable_to_file(d, path, size=(310, 470) )
|
||||
ImagePayload().inject("_temp.png", filename, str(exported))
|
||||
image_payload.inject("_temp.png", filename, str(exported))
|
||||
os.remove(path)
|
||||
else:
|
||||
set_clipboard(exported)
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user