Skip to content

Commit

Permalink
Merge pull request #711 from CesiumGS/fix-add-imagery
Browse files Browse the repository at this point in the history
Fix missing button for adding imagery from Asset UI
  • Loading branch information
lilleyse authored Apr 29, 2024
2 parents 02f16d2 + 4379514 commit 0ccc365
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _add_raster_overlay_button_clicked(self):
selection = context.get_selection().get_selected_prim_paths()
tileset_path: Optional[str] = None

if len(selection) > 0 and is_tileset(context.get_stage().GetPrimAtPath(selection[0])):
if len(selection) > 0 and is_tileset(selection[0]):
tileset_path = selection[0]

if tileset_path is None:
Expand Down Expand Up @@ -122,7 +122,7 @@ def _build_fn(self):
style=CesiumOmniverseUiStyles.blue_button_style,
clicked_fn=self._add_tileset_button_clicked,
)
elif self._asset_type == "RASTER_OVERLAY":
elif self._asset_type == "IMAGERY":
ui.Button(
"Use as Terrain Tileset Base Layer",
width=0,
Expand Down

0 comments on commit 0ccc365

Please sign in to comment.