From 3cdbbcc748e82544814176b281d6f0544f729177 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 23 Feb 2011 14:33:18 +0100 Subject: [PATCH] allow game packs to override the default of brush primitives --- radiant/brushmodule.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radiant/brushmodule.cpp b/radiant/brushmodule.cpp index 21cec0ee..3cdf77a8 100644 --- a/radiant/brushmodule.cpp +++ b/radiant/brushmodule.cpp @@ -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), -- 2.39.2