Skip to content

Commit

Permalink
Correctly show Sdf.Path tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Dec 1, 2023
1 parent 84107bc commit 5e55317
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usd_qtpy/prim_spec_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ def data(self, index, role):

if role == QtCore.Qt.ToolTipRole:
item = index.data(TreeModel.ItemRole)
return item.get("path")
path = item.get("path")
if path and isinstance(path, Sdf.Path):
path = path.pathString
return path

return super(StageSdfModel, self).data(index, role)

Expand Down

0 comments on commit 5e55317

Please sign in to comment.