From c55e2601142fd3dbfc3adc2098c307345ed1b0c7 Mon Sep 17 00:00:00 2001 From: Josh Steffen Date: Thu, 15 Jan 2015 15:54:54 -0500 Subject: [PATCH] only color detail brush if it's not part of an entity --- radiant/xywindow.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index 179e130c..7b07ba99 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -2851,16 +2851,15 @@ void XYWnd::XY_Draw(){ if ( brush->owner != e && brush->owner ) { qglColor3fv( brush->owner->eclass->color ); } + else if ( brush->brush_faces->texdef.contents & CONTENTS_DETAIL ) + { + qglColor3fv( g_qeglobals.d_savedinfo.colors[COLOR_DETAIL] ); + } else { qglColor3fv( g_qeglobals.d_savedinfo.colors[COLOR_BRUSHES] ); } - //Color detail brushes differently - if ( brush->brush_faces->texdef.contents & CONTENTS_DETAIL ) { - qglColor3fv( g_qeglobals.d_savedinfo.colors[COLOR_DETAIL] ); - } - #ifdef DBG_SCENEDUMP if ( bDump ) { Sys_FPrintf( SYS_WRN, "Active brush: %p ", brush );