mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-07 19:32:09 +03:00
VRAD - reduce duplicate %alphatexture searches
Per comment on https://github.com/ValveSoftware/source-sdk-2013/pull/1150 by @ficool2
This commit is contained in:
parent
9055a01141
commit
bb209357c2
@ -528,14 +528,10 @@ public:
|
|||||||
if ( pVMT->LoadFromBuffer( pMaterialName, buf ) )
|
if ( pVMT->LoadFromBuffer( pMaterialName, buf ) )
|
||||||
{
|
{
|
||||||
bFound = true;
|
bFound = true;
|
||||||
if ( pVMT->FindKey("$alphatest") || pVMT->FindKey("$translucent") || pVMT->FindKey("%alphatexture") )
|
KeyValues *pBaseTexture = pVMT->FindKey("%alphatexture");
|
||||||
|
if ( pBaseTexture || pVMT->FindKey("$alphatest") || pVMT->FindKey("$translucent") )
|
||||||
{
|
{
|
||||||
KeyValues *pBaseTexture = NULL;
|
if ( !pBaseTexture )
|
||||||
if ( pVMT->FindKey("%alphatexture") )
|
|
||||||
{
|
|
||||||
pBaseTexture = pVMT->FindKey("%alphatexture");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
pBaseTexture = pVMT->FindKey("$basetexture");
|
pBaseTexture = pVMT->FindKey("$basetexture");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user