improve textureProjectionSetSelected -rotation output in BP mode

This commit is contained in:
Garux 2017-10-19 10:15:59 +03:00
parent c152cf02a4
commit 2adf7f8a4f

View File

@ -1382,7 +1382,7 @@ void SurfaceInspector::ApplyTexdef_VScale(){
void SurfaceInspector::ApplyTexdef_Rotation(){
const float value = static_cast<float>( gtk_spin_button_get_value_as_float( m_rotateIncrement.m_spin ) );
StringOutputStream command;
command << "textureProjectionSetSelected -rotation " << value;
command << "textureProjectionSetSelected -rotation " << static_cast<float>( float_to_integer( value * 100.f ) ) / 100.f;;
UndoableCommand undo( command.c_str() );
Select_SetTexdef( 0, 0, 0, 0, &value );
}