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):