·
2280 commits
to master
since this release
Bug Fixes
- Fix Module Designer crash: Guard against \NoneType\ when _getLyt()\ or _getGit()\ returns \None, preventing the \AttributeError: 'NoneType' object has no attribute 'rooms'\ crash during rendering.
- Fix app freeze on error: Wrap \paintGL\ rendering in try/except and pause the render loop on failure, preventing infinite error dialogs that made the application impossible to close (required PC restart).
Details
The Module Designer's OpenGL renderer could crash with a repeating error dialog when a module's LYT or GIT resource was missing or failed to load. The error occurred during \�uildCache()\ in the render loop, and because Qt calls \paintGL\ every frame, the exception would repeat indefinitely, blocking app closure.
Files Changed
- \Libraries/PyKotorGL/src/pykotor/gl/scene.py\ - Null guards in \�uildCache()\
- \Tools/HolocronToolset/src/toolset/gui/widgets/renderer/module.py\ - Exception handling in \paintGL()\