Skip to content

Commit

Permalink
fix small type bug in geom_prim.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cremebrule committed Oct 18, 2024
1 parent 15c58c0 commit 7034557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnigibson/prims/geom_prim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7034557

Please sign in to comment.