mirror of
https://github.com/blw1138/Zordon.git
synced 2026-06-09 13:39:24 -05:00
fix: AttributeError on .enabled in update_job_count prevents options from rendering
This commit is contained in:
@@ -193,5 +193,5 @@ class Blender(BaseRenderEngine):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
x = Blender().get_render_devices()
|
||||
x = Blender().system_info()
|
||||
print(x)
|
||||
|
||||
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user