From 2adf7f8a4fa75e40535540fe8822e3450b042c10 Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 19 Oct 2017 10:15:59 +0300 Subject: [PATCH] improve textureProjectionSetSelected -rotation output in BP mode --- radiant/surfacedialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant/surfacedialog.cpp b/radiant/surfacedialog.cpp index 2ce52076..8b2bef16 100644 --- a/radiant/surfacedialog.cpp +++ b/radiant/surfacedialog.cpp @@ -1382,7 +1382,7 @@ void SurfaceInspector::ApplyTexdef_VScale(){ void SurfaceInspector::ApplyTexdef_Rotation(){ const float value = static_cast( gtk_spin_button_get_value_as_float( m_rotateIncrement.m_spin ) ); StringOutputStream command; - command << "textureProjectionSetSelected -rotation " << value; + command << "textureProjectionSetSelected -rotation " << static_cast( float_to_integer( value * 100.f ) ) / 100.f;; UndoableCommand undo( command.c_str() ); Select_SetTexdef( 0, 0, 0, 0, &value ); }