Commit 5a57381
authored
[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
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
0 commit comments