mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-25 02:41:22 +00:00
Use the configured texture scale as default for SnapToGrid.
This commit is contained in:
parent
3b8e83fb80
commit
54f4d2b1f5
1 changed files with 2 additions and 2 deletions
|
@ -357,10 +357,10 @@ void DoSnapTToGrid( float hscale, float vscale ){
|
||||||
l_pIncrement = Get_SI_Inc();
|
l_pIncrement = Get_SI_Inc();
|
||||||
|
|
||||||
if ( hscale == 0.0f ) {
|
if ( hscale == 0.0f ) {
|
||||||
hscale = 0.25f;
|
hscale = l_pIncrement->scale[0];
|
||||||
}
|
}
|
||||||
if ( vscale == 0.0f ) {
|
if ( vscale == 0.0f ) {
|
||||||
vscale = 0.25f;
|
vscale = l_pIncrement->scale[1];
|
||||||
}
|
}
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
Sys_Printf( "DoSnapToGrid: grid %g hscale %g vscale %g\n", GridSize(), hscale, vscale );
|
Sys_Printf( "DoSnapToGrid: grid %g hscale %g vscale %g\n", GridSize(), hscale, vscale );
|
||||||
|
|
Loading…
Reference in a new issue