diff --git a/sp/src/utils/vrad/vradstaticprops.cpp b/sp/src/utils/vrad/vradstaticprops.cpp index f4f04a69..ebd77326 100644 --- a/sp/src/utils/vrad/vradstaticprops.cpp +++ b/sp/src/utils/vrad/vradstaticprops.cpp @@ -528,9 +528,17 @@ public: if ( pVMT->LoadFromBuffer( pMaterialName, buf ) ) { bFound = true; - if ( pVMT->FindKey("$translucent") || pVMT->FindKey("$alphatest") ) + if ( pVMT->FindKey("$alphatest") || pVMT->FindKey("$translucent") || pVMT->FindKey("%alphatexture") ) { - KeyValues *pBaseTexture = pVMT->FindKey("$basetexture"); + KeyValues *pBaseTexture = NULL; + if ( pVMT->FindKey("%alphatexture") ) + { + pBaseTexture = pVMT->FindKey("%alphatexture"); + } + else + { + pBaseTexture = pVMT->FindKey("$basetexture"); + } if ( pBaseTexture ) { const char *pBaseTextureName = pBaseTexture->GetString();