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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user