From: Rudolf Polzer Date: Thu, 4 Nov 2010 13:55:43 +0000 (+0100) Subject: change texture lock default to true; remove weird user pref munging X-Git-Tag: xonotic-v0.5.0~156 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ec7957adecbb91d035643be8b1d6145ff5e64c90;p=xonotic%2Fnetradiant.git change texture lock default to true; remove weird user pref munging --- diff --git a/radiant/brush.cpp b/radiant/brush.cpp index d2f217b3..2593ac55 100644 --- a/radiant/brush.cpp +++ b/radiant/brush.cpp @@ -37,7 +37,7 @@ void Brush_textureChanged() QuantiseFunc Face::m_quantise; EBrushType Face::m_type; EBrushType FacePlane::m_type; -bool g_brush_texturelock_enabled = false; +bool g_brush_texturelock_enabled = true; EBrushType Brush::m_type; double Brush::m_maxWorldCoord = 0; diff --git a/radiant/brush.h b/radiant/brush.h index 80e0bd02..75d4761b 100644 --- a/radiant/brush.h +++ b/radiant/brush.h @@ -2111,12 +2111,12 @@ public: if(m_type == eBrushTypeQuake3BP || m_type == eBrushTypeDoom3 || m_type == eBrushTypeQuake4) { 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) { 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;