Only load+undistort splatfacto images when they're used (#3043)

* Only load splatfacto dataset when it's used

* ruff

* typo fix

* Fix #2817; don't undistort for `ns-viewer --viewer.max-num-display-images 0`

* ruff
This commit is contained in:
Brent Yi authored and GitHub committed 2024-04-04 23:25:04 +00:00
1 parent c572eb7f19
commit 3ac1b6bec7
2 files changed
+73 -95

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ def parse_object(
return []
ret = []
# get a list of the properties of the object, sorted by whether things are instances of type_check
obj_props = [(k, getattr(obj, k)) for k in dir(obj)]
obj_props = [(k, v) for k, v in vars(obj).items()]
for k, v in obj_props:
if k[0] == "_":
continue