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__":
x = Blender().get_render_devices()
x = Blender().system_info()
print(x)
+6 -3
View File
@@ -1,8 +1,11 @@
import logging
import socket
from pathlib import Path
import psutil
from PyQt6.QtCore import QThread, pyqtSignal, Qt, pyqtSlot
logger = logging.getLogger(__name__)
from PyQt6.QtWidgets import (
QApplication, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QPushButton, QFileDialog, QSpinBox, QComboBox,
QGroupBox, QCheckBox, QProgressBar, QPlainTextEdit, QDoubleSpinBox, QMessageBox, QListWidget, QListWidgetItem,
@@ -306,7 +309,7 @@ class NewRenderJobForm(QWidget):
def update_job_count(self, changed_item=None):
checked = 1
if self.cameras_group.enabled:
if self.cameras_group.isEnabled():
checked = 0
total = self.cameras_list.count()
@@ -463,8 +466,8 @@ class NewRenderJobForm(QWidget):
text_box = QLineEdit()
h_layout.addWidget(text_box)
self.engine_options_layout.addLayout(h_layout)
except AttributeError:
pass
except AttributeError as e:
logger.error(f"AttributeError in post_get_project_info_update: {e}")
def toggle_engine_enablement(self, enabled=False):
"""Toggle on/off all the render settings"""