Skip to content

Commit

Permalink
add check back in to fix missing background
Browse files Browse the repository at this point in the history
Signed-off-by: Ashton Larkin <[email protected]>
  • Loading branch information
adlarkin committed Jan 13, 2021
1 parent a369a6e commit df3024d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2ThermalCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void Ogre2ThermalCameraMaterialSwitcher::preRenderTargetUpdate(

// get temperature
Variant tempAny = ogreVisual->UserData(tempKey);
if (!std::holds_alternative<std::string>(tempAny))
if (tempAny.index() != 0 && !std::holds_alternative<std::string>(tempAny))
{
float temp = -1.0;
try
Expand Down

0 comments on commit df3024d

Please sign in to comment.