From 70345579ec64885baaf03a4b97c9f096092e8e60 Mon Sep 17 00:00:00 2001 From: cremebrule <84cremebrule@gmail.com> Date: Thu, 17 Oct 2024 23:45:58 -0700 Subject: [PATCH] fix small type bug in geom_prim.py --- omnigibson/prims/geom_prim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnigibson/prims/geom_prim.py b/omnigibson/prims/geom_prim.py index 0c12beada..7b03dad9e 100644 --- a/omnigibson/prims/geom_prim.py +++ b/omnigibson/prims/geom_prim.py @@ -117,7 +117,7 @@ def opacity(self, opacity): if self.has_material(): self.material.opacity_constant = opacity else: - self.set_attribute("primvars:displayOpacity", th.tensor([opacity])) + self.set_attribute("primvars:displayOpacity", np.array([opacity])) @property def points(self):