mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-07 19:32:09 +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 ) )
|
if ( pVMT->LoadFromBuffer( pMaterialName, buf ) )
|
||||||
{
|
{
|
||||||
bFound = true;
|
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 )
|
if ( pBaseTexture )
|
||||||
{
|
{
|
||||||
const char *pBaseTextureName = pBaseTexture->GetString();
|
const char *pBaseTextureName = pBaseTexture->GetString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user