Skip to content

Commit

Permalink
Fix Refractive transparency mode not being loaded by JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Jan 23, 2022
1 parent e40bc53 commit 2319b51
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Components/Hlms/Pbs/src/OgreHlmsJsonPbs.cpp
Expand Up @@ -106,12 +106,11 @@ namespace Ogre
//-----------------------------------------------------------------------------------
HlmsPbsDatablock::TransparencyModes HlmsJsonPbs::parseTransparencyMode( const char *value )
{
if( !strcmp( value, "None" ) )
return HlmsPbsDatablock::None;
if( !strcmp( value, "Transparent" ) )
return HlmsPbsDatablock::Transparent;
if( !strcmp( value, "Fade" ) )
return HlmsPbsDatablock::Fade;
for( size_t i = 0; i < sizeof( c_transparencyModes ) / sizeof( c_transparencyModes[0] ); ++i )
{
if( !strcmp( value, c_transparencyModes[i] ) )
return static_cast<HlmsPbsDatablock::TransparencyModes>( i );
}

return HlmsPbsDatablock::None;
}
Expand Down

0 comments on commit 2319b51

Please sign in to comment.