]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/brushmodule.cpp
allow game packs to override the default of brush primitives
[xonotic/netradiant.git] / radiant / brushmodule.cpp
index 21cec0ee8b8ff385cc766cf8f47e452bc301c128..3cdf77a829a04b2f8aac9bb7208b688d5b22e3d5 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),