mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-07 11:22:12 +03:00
Merge pull request #414 from Yuis-Archives/alphatexture
Replicate %alphatexture from Gmod
This commit is contained in:
commit
2d968370b9
@ -528,9 +528,13 @@ public:
|
||||
if ( pVMT->LoadFromBuffer( pMaterialName, buf ) )
|
||||
{
|
||||
bFound = true;
|
||||
if ( pVMT->FindKey("$translucent") || pVMT->FindKey("$alphatest") )
|
||||
KeyValues *pBaseTexture = pVMT->FindKey("%alphatexture");
|
||||
if ( pBaseTexture || pVMT->FindKey("$alphatest") || pVMT->FindKey("$translucent") )
|
||||
{
|
||||
KeyValues *pBaseTexture = pVMT->FindKey("$basetexture");
|
||||
if ( !pBaseTexture )
|
||||
{
|
||||
pBaseTexture = pVMT->FindKey("$basetexture");
|
||||
}
|
||||
if ( pBaseTexture )
|
||||
{
|
||||
const char *pBaseTextureName = pBaseTexture->GetString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user