somewhat unclean code, sorry... but it allows opening brushPrimitives maps in nonBrushPrimitives mode (experimental) by temp toggling to the correct mode

This commit is contained in:
Rudolf Polzer
2010-10-10 10:47:16 +02:00
parent 652a2d36fb
commit 2b0a97c814
5 changed files with 30 additions and 0 deletions

View File

@@ -101,6 +101,17 @@ void Brush_unlatchPreferences()
}
}
void Brush_toggleProjection()
{
if(g_showAlternativeTextureProjectionOption)
{
g_useAlternativeTextureProjection.m_value = !g_useAlternativeTextureProjection.m_value;
globalErrorStream() << "Toggled g_useAlternativeTextureProjection (" << g_useAlternativeTextureProjection.m_value << ")\n";
Brush::destroyStatic();
Brush::constructStatic(g_useAlternativeTextureProjection.m_value ? eBrushTypeQuake3BP : eBrushTypeQuake3);
}
}
void Brush_Construct(EBrushType type)
{
if(type == eBrushTypeQuake3)