allow game packs to override the default of brush primitives
authorRudolf Polzer <divverent@alientrap.org>
Wed, 23 Feb 2011 13:33:18 +0000 (14:33 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 23 Feb 2011 13:33:18 +0000 (14:33 +0100)
radiant/brushmodule.cpp

index 21cec0e..3cdf77a 100644 (file)
@@ -118,6 +118,10 @@ void Brush_Construct(EBrushType type)
   {
     g_showAlternativeTextureProjectionOption = true;
 
+    const char *value = g_pGameDescription->getKeyValue("brush_primit");
+    if(!string_empty(value))
+      g_useAlternativeTextureProjection.m_latched = atoi(value);
+
     GlobalPreferenceSystem().registerPreference(
       "AlternativeTextureProjection",
       BoolImportStringCaller(g_useAlternativeTextureProjection.m_latched),