Skip to content

Commit 4bba13e

Browse files
authored
fixed 20tab#129 engine crash
Unreal Engine crashes whenever a QApplication gets created twice
1 parent 571dd79 commit 4bba13e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,12 @@ def selected_skeletal_mesh(item):
986986
ue.log('Ready to reimport: ' + uobject.get_name())
987987
uobject.asset_reimport()
988988

989-
app = QApplication([])
989+
#check if an instance of the application is already running
990+
app = QApplication.instance()
991+
if app is None:
992+
app = QApplication([])
993+
else:
994+
print("App already running.")
990995

991996
win = QWidget()
992997
win.setWindowTitle('Unreal Engine 4 skeletal meshes reimporter')

0 commit comments

Comments
 (0)