Skip to content

Commit

Permalink
Update defined check
Browse files Browse the repository at this point in the history
Co-authored-by: Gabby Getz <[email protected]>
  • Loading branch information
javagl and ggetz authored Nov 22, 2024
1 parent 0c5826c commit 9a641a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Apps/Sandcastle/gallery/3D Tiles NGA GPM Visualization.html
Original file line number Diff line number Diff line change
Expand Up @@ -1232,12 +1232,12 @@ <h4>Cesium GPM Visualization</h4>
const content = tile?.content;
const modelContent =
content instanceof Cesium.Model3DTileContent ? content : undefined;
if (!modelContent) {
if (!Cesium.defined(modelContent)) {
return undefined;
}

const extensionObject = modelContent.getExtension("NGA_gpm_local");
if (!extensionObject) {
if (!Cesium.defined(extensionObject)) {
return undefined;
}
return extensionObject.anchorPointsIndirect;
Expand Down

0 comments on commit 9a641a5

Please sign in to comment.