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__":
|
if __name__ == "__main__":
|
||||||
x = Blender().get_render_devices()
|
x = Blender().system_info()
|
||||||
print(x)
|
print(x)
|
||||||
|
|||||||
@@ -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"""
|
||||||
|
|||||||
Reference in New Issue
Block a user