* fix brush shader names handling by bobtoolz (was writting empty shader name = crash on map save, at least "textures/" is expected)

complain about patch and brush shader names harder
This commit is contained in:
Garux
2018-12-21 14:45:12 +03:00
parent 9186d18353
commit 4dc9b18f70
3 changed files with 5 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ DPlane::DPlane( const vec3_t va, const vec3_t vb, const vec3_t vc, const _QERFac
else{
FillDefaultTexture( &texInfo, points[0], points[1], points[2], "textures/common/caulk" );
}
m_shader = texInfo.m_shader;
}
DPlane::~DPlane(){
@@ -262,6 +264,7 @@ DPlane::DPlane( const vec3_t va, const vec3_t vb, const vec3_t vc, const char* t
m_bChkOk = true;
FillDefaultTexture( &texInfo, points[0], points[1], points[2], textureName );
m_shader = texInfo.m_shader;
if ( bDetail ) {
texInfo.contents |= FACE_DETAIL;
}