Skip to content

Commit

Permalink
Do not show empty label for anonymous layers without a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Dec 3, 2023
1 parent eb4a968 commit 6116a4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usd_qtpy/prim_spec_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def refresh(self):
for layer in stage.GetLayerStack():

layer_item = Item({
"name": layer.GetDisplayName(),
"name": layer.GetDisplayName() or layer.identifier,
"identifier": layer.identifier,
"specifier": None,
"type": layer.__class__.__name__
Expand Down Expand Up @@ -484,7 +484,8 @@ def on_context_menu(self, point):

stage = self.model._stage
for layer in stage.GetLayerStack():
action = move_menu.addAction(layer.GetDisplayName())
label = layer.GetDisplayName() or layer.identifier
action = move_menu.addAction(label)
action.setData(layer)

def move_to(action):
Expand Down

0 comments on commit 6116a4c

Please sign in to comment.