mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-04-24 03:11:05 +00:00
Hollow Touch update, thx Garux
This commit is contained in:
parent
39405afcb0
commit
57138ae6e5
1 changed files with 8 additions and 5 deletions
|
@ -62,18 +62,21 @@ void CSG_MakeHollowMode( int mode ){
|
|||
split = *f;
|
||||
VectorScale( f->plane.normal, g_qeglobals.d_gridsize, move );
|
||||
for ( i = 0 ; i < 3 ; i++ )
|
||||
VectorSubtract( split.planepts[i], move, split.planepts[i] );
|
||||
|
||||
if( mode == CSG_HOLLOW_MODE_TOUCH ) {
|
||||
VectorAdd( f->planepts[i], move, f->planepts[i] );
|
||||
} else {
|
||||
VectorSubtract( split.planepts[i], move, split.planepts[i] );
|
||||
}
|
||||
Brush_SplitBrushByFace( b, &split, &front, &back );
|
||||
if ( back ) {
|
||||
Brush_Free( back );
|
||||
}
|
||||
if ( front ) {
|
||||
if( mode == CSG_HOLLOW_MODE_TOUCH ) {
|
||||
Brush_Move( front, move, true );
|
||||
}
|
||||
Brush_AddToList( front, &selected_brushes );
|
||||
}
|
||||
if( mode == CSG_HOLLOW_MODE_TOUCH ) {
|
||||
*f = split;
|
||||
}
|
||||
}
|
||||
Brush_Free( b );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue