We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ecb4ef3 + a3ca8b5 commit 405c576Copy full SHA for 405c576
UIElements/backgroundMenu.py
@@ -58,8 +58,7 @@ def reloadBackground(self):
58
self.close()
59
60
def processBackground(self):
61
- if self.data.backgroundFile == "" or os.path.isdir(
62
- self.data.backgroundFile):
+ if self.data.backgroundFile == "" or os.path.isdir(self.data.backgroundFile) or not os.path.isfile(self.data.backgroundFile):
63
self.data.backgroundTexture = None
64
self.data.backgroundManualReg = []
65
self.updateAlignmentInConfig()
0 commit comments