change texture lock default to true; remove weird user pref munging

This commit is contained in:
Rudolf Polzer 2010-11-04 14:55:43 +01:00
parent 288318d040
commit ec7957adec
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ void Brush_textureChanged()
QuantiseFunc Face::m_quantise; QuantiseFunc Face::m_quantise;
EBrushType Face::m_type; EBrushType Face::m_type;
EBrushType FacePlane::m_type; EBrushType FacePlane::m_type;
bool g_brush_texturelock_enabled = false; bool g_brush_texturelock_enabled = true;
EBrushType Brush::m_type; EBrushType Brush::m_type;
double Brush::m_maxWorldCoord = 0; double Brush::m_maxWorldCoord = 0;

View File

@ -2111,12 +2111,12 @@ public:
if(m_type == eBrushTypeQuake3BP || m_type == eBrushTypeDoom3 || m_type == eBrushTypeQuake4) if(m_type == eBrushTypeQuake3BP || m_type == eBrushTypeDoom3 || m_type == eBrushTypeQuake4)
{ {
g_bp_globals.m_texdefTypeId = TEXDEFTYPEID_BRUSHPRIMITIVES; g_bp_globals.m_texdefTypeId = TEXDEFTYPEID_BRUSHPRIMITIVES;
g_brush_texturelock_enabled = true; // g_brush_texturelock_enabled = true; // bad idea, this overrides user setting
} }
else if(m_type == eBrushTypeHalfLife) else if(m_type == eBrushTypeHalfLife)
{ {
g_bp_globals.m_texdefTypeId = TEXDEFTYPEID_HALFLIFE; g_bp_globals.m_texdefTypeId = TEXDEFTYPEID_HALFLIFE;
g_brush_texturelock_enabled = true; // g_brush_texturelock_enabled = true; // bad idea, this overrides user setting
} }
Face::m_quantise = (m_type == eBrushTypeQuake) ? quantiseInteger : quantiseFloating; Face::m_quantise = (m_type == eBrushTypeQuake) ? quantiseInteger : quantiseFloating;