]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/brushmodule.cpp
allow changing the "Alternate texture projection" mode at runtime (requires Map_New...
[xonotic/netradiant.git] / radiant / brushmodule.cpp
index 6b47e0926e6990d2ac228942b2165e2f5fbcddfd..e8b605ca7d4a8da202ff4b350610644035951b12 100644 (file)
@@ -90,6 +90,16 @@ void Brush_registerPreferencesPage()
   PreferencesDialog_addSettingsPage(FreeCaller1<PreferenceGroup&, Brush_constructPage>());
 }
 
+void Brush_unlatchPreferences()
+{
+       if(g_showAlternativeTextureProjectionOption)
+       {
+               g_useAlternativeTextureProjection.useLatched();
+               globalErrorStream() << "Unlatched g_useAlternativeTextureProjection (" << g_useAlternativeTextureProjection.m_value << ")\n";
+               Brush::destroyStatic();
+               Brush::constructStatic(g_useAlternativeTextureProjection.m_value ? eBrushTypeQuake3BP : eBrushTypeQuake3);
+       }
+}
 
 void Brush_Construct(EBrushType type)
 {