Skip to content

Commit

Permalink
Fix add imagery
Browse files Browse the repository at this point in the history
  • Loading branch information
r-veenstra committed Apr 29, 2024
1 parent 02f16d2 commit 4379514
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 4379514

Please sign in to comment.