fix: AttributeError on .enabled in update_job_count prevents options from rendering

This commit is contained in:
Brett Williams
2026-06-05 20:12:14 -05:00
parent 0c62f454a7
commit c592236c98
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -193,5 +193,5 @@ class Blender(BaseRenderEngine):
if __name__ == "__main__": if __name__ == "__main__":
x = Blender().get_render_devices() x = Blender().system_info()
print(x) print(x)
+6 -3
View File
@@ -1,8 +1,11 @@
import logging
import socket import socket
from pathlib import Path from pathlib import Path
import psutil import psutil
from PyQt6.QtCore import QThread, pyqtSignal, Qt, pyqtSlot from PyQt6.QtCore import QThread, pyqtSignal, Qt, pyqtSlot
logger = logging.getLogger(__name__)
from PyQt6.QtWidgets import ( from PyQt6.QtWidgets import (
QApplication, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton, QFileDialog, QSpinBox, QComboBox, QApplication, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton, QFileDialog, QSpinBox, QComboBox,
QGroupBox, QCheckBox, QProgressBar, QPlainTextEdit, QDoubleSpinBox, QMessageBox, QListWidget, QListWidgetItem, QGroupBox, QCheckBox, QProgressBar, QPlainTextEdit, QDoubleSpinBox, QMessageBox, QListWidget, QListWidgetItem,
@@ -306,7 +309,7 @@ class NewRenderJobForm(QWidget):
def update_job_count(self, changed_item=None): def update_job_count(self, changed_item=None):
checked = 1 checked = 1
if self.cameras_group.enabled: if self.cameras_group.isEnabled():
checked = 0 checked = 0
total = self.cameras_list.count() total = self.cameras_list.count()
@@ -463,8 +466,8 @@ class NewRenderJobForm(QWidget):
text_box = QLineEdit() text_box = QLineEdit()
h_layout.addWidget(text_box) h_layout.addWidget(text_box)
self.engine_options_layout.addLayout(h_layout) self.engine_options_layout.addLayout(h_layout)
except AttributeError: except AttributeError as e:
pass logger.error(f"AttributeError in post_get_project_info_update: {e}")
def toggle_engine_enablement(self, enabled=False): def toggle_engine_enablement(self, enabled=False):
"""Toggle on/off all the render settings""" """Toggle on/off all the render settings"""