Skip to content

Commit

Permalink
inspector render n/a when internal texture undef (#12409)
Browse files Browse the repository at this point in the history
  • Loading branch information
darraghjburke committed Apr 19, 2022
1 parent 6e77ec7 commit 7694167
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class TexturePropertyGridComponent extends React.Component<ITextureProper
<TextLineComponent label="Use sRGB buffers" value={texture._texture?._useSRGBBuffer ? "Yes" : "No"} />
{extension && <TextLineComponent label="File format" value={extension} />}
<TextLineComponent label="Unique ID" value={texture.uniqueId.toString()} />
<TextLineComponent label="Internal Unique ID" value={texture._texture?.uniqueId.toString()} />
<TextLineComponent label="Internal Unique ID" value={(texture._texture?.uniqueId ?? "N/A").toString()} />
<TextLineComponent label="Class" value={textureClass} />
{count >= 0 && <TextLineComponent label="Number of textures" value={count.toString()} />}
<TextLineComponent label="Has alpha" value={texture.hasAlpha ? "Yes" : "No"} />
Expand Down

0 comments on commit 7694167

Please sign in to comment.