Skip to content

Commit 5a57381

Browse files
[cuegui] Fix AttributeError when assigning local cores from layers/frames (AcademySoftwareFoundation#2052)
**Link the Issue(s) this Pull Request is related to.** - AcademySoftwareFoundation#2051 **Summarize your change.** Users were unable to enable local rendering on frames and layers due to a missing attribute initialization. The `LocalBookingWidget` attempted to access 'local_plugin_saved_values' on the parent widget, but this attribute was only initialized in `JobMonitorTree`, not in `LayerMonitorTree` or `FrameMonitorTree`. This caused an `AttributeError` when users tried to: - Right-click on a layer and select "Assign Local Cores" - Right-click on a frame and select "Assign Local Cores" - Book local cores after successfully opening the dialog Changes: - Initialize `local_plugin_saved_values` dict in `LayerMonitorTree.__init__` - Initialize `local_plugin_saved_values` dict in `FrameMonitorTree.__init__` This ensures the `LocalBookingWidget` can properly save and restore user preferences (num_frames, num_threads, num_gpus, num_mem, num_gpu_mem) across all monitor tree types. Fixes local rendering issues reported on affected render hosts.
1 parent 55a90b3 commit 5a57381

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cuegui/cuegui/FrameMonitorTree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def getFrameStateOverride(frame):
232232
self.header().sortIndicatorChanged.connect(self.__sortByColumnSave)
233233

234234
self.__load = None
235+
self.local_plugin_saved_values = {}
235236
self.startTicksUpdate(20)
236237

237238
def tick(self):

cuegui/cuegui/LayerMonitorTree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def __init__(self, parent):
163163

164164
self.disableUpdate = False
165165
self.__load = None
166+
self.local_plugin_saved_values = {}
166167
self.startTicksUpdate(20, False, 60*60*24)
167168

168169
# pylint: disable=attribute-defined-outside-init

0 commit comments

Comments
 (0)