mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
Bugfix; scrape pipeline for viewercontrol, not trainer (#2621)
Scrape pipeline for viewercontrol, not trainer
This commit is contained in:
1 parent
9528a3f717
commit
43703fa05a
1 file changed
+1
-1
@@ -213,7 +213,7 @@ class Viewer:
|
|||||||
|
|
||||||
# scrape the trainer/pipeline for any ViewerControl objects to initialize them
|
# scrape the trainer/pipeline for any ViewerControl objects to initialize them
|
||||||
self.viewer_controls: List[ViewerControl] = [
|
self.viewer_controls: List[ViewerControl] = [
|
||||||
e for (_, e) in parse_object(self.trainer, ViewerControl, "Custom Elements")
|
e for (_, e) in parse_object(pipeline, ViewerControl, "Custom Elements")
|
||||||
]
|
]
|
||||||
for c in self.viewer_controls:
|
for c in self.viewer_controls:
|
||||||
c._setup(self)
|
c._setup(self)
|
||||||
|
|||||||
Reference in new issue
Block a user