Basic viser frontend (#1973)

* Use viser frontend

* Rendering but poses incorrect

* Fix cameras
This commit is contained in:
Matthew Tancik authored and GitHub committed 2023-05-23 12:21:38 -07:00
1 parent d413ca4204
commit efd83abb6d
8 files changed
+522 -5

No files matched your search

+2 -2
View File
@@ -50,11 +50,11 @@ def check_profiler_enabled(func: Callable) -> Callable:
def check_viewer_enabled(func: Callable) -> Callable:
"""Decorator: check if viewer is enabled and only run on main process"""
"""Decorator: check if the viewer or beta viewer is enabled and only run on main process"""
def wrapper(self, *args, **kwargs):
ret = None
if self.config.is_viewer_enabled() and comms.is_main_process():
if (self.config.is_viewer_beta_enabled() or self.config.is_viewer_beta_enabled()) and comms.is_main_process():
ret = func(self, *args, **kwargs)
return ret