Browse Source

utils: mdldec: fix of masked_solid texture flag

pull/2/head
SNMetamorph 3 years ago committed by Alibek Omarov #SupportRMS
parent
commit
8d5426cdcd
  1. 8
      utils/mdldec/qc.c

8
utils/mdldec/qc.c

@ -224,10 +224,12 @@ static void WriteTextureRenderMode( FILE *fp )
fprintf( fp, "$texrendermode \"%s\" \"additive\" \n", texture->name ); fprintf( fp, "$texrendermode \"%s\" \"additive\" \n", texture->name );
if( texture->flags & STUDIO_NF_MASKED ) if( texture->flags & STUDIO_NF_MASKED )
fprintf( fp, "$texrendermode \"%s\" \"masked\" \n", texture->name ); {
if( texture->flags & STUDIO_NF_ALPHASOLID )
if( texture->flags & ( STUDIO_NF_MASKED | STUDIO_NF_ALPHASOLID ) )
fprintf( fp, "$texrendermode \"%s\" \"masked_solid\" \n", texture->name ); // xash3d extension fprintf( fp, "$texrendermode \"%s\" \"masked_solid\" \n", texture->name ); // xash3d extension
else
fprintf( fp, "$texrendermode \"%s\" \"masked\" \n", texture->name );
}
if( texture->flags & STUDIO_NF_TWOSIDE ) if( texture->flags & STUDIO_NF_TWOSIDE )
fprintf( fp, "$texrendermode \"%s\" \"twoside\" \n", texture->name ); fprintf( fp, "$texrendermode \"%s\" \"twoside\" \n", texture->name );

Loading…
Cancel
Save