ynput / ayon-blender

Blender addon for AYON
Apache License 2.0
7 stars 2 forks source link

Fix QApplication access on platforms other than Windows #9

Closed BigRoy closed 3 months ago

BigRoy commented 3 months ago

Issue

This PR #7 introduced changes to how the QApplication is generated and accessed - however it seems I missed one that was only called on non-windows platforms, which of course I didn't test on.

This PR should fix the bug reported here and with that should also fix the current ayon-blender state for Mac/Linux.

Original error:

Traceback (most recent call last):
  File "/home/hannah/.local/share/AYON/addons/blender_0.2.1-dev.1/ayon_blender/api/ops.py", line 198, in _process_app_events
    if app._instance:
       ^^^^^^^^^^^^^
AttributeError: 'PySide6.QtWidgets.QApplication' object has no attribute '_instance'

Testing Notes

  1. Run Blender on non-windows platform
  2. Make sure the AYON Qt tools work as intended.

@HannahFantasia can you test run this?

BigRoy commented 3 months ago

This PR fixed the linux issue according to this report. Great! 🥳