Skip to content

Commit

Permalink
Fix setData return type
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Dec 1, 2023
1 parent 7e2fb08 commit 84107bc
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 @@ -276,7 +276,7 @@ def flags(self, index):

return super(StageSdfModel, self).flags(index)

def setData(self, index, value, role):
def setData(self, index, value, role) -> bool:

if index.column() == 1: # specifier
item = index.internalPointer()
Expand All @@ -287,6 +287,9 @@ def setData(self, index, value, role):
}
value = lookup[value]
spec.specifier = value
return True

return super(StageSdfModel, self).setData(index, value, role)

def data(self, index, role):

Expand Down

0 comments on commit 84107bc

Please sign in to comment.