Fix property tool converting x / y values as temperatures

This commit is contained in:
jacob1 2022-12-28 22:56:58 -05:00
parent 476be15e77
commit 932f28bcd7
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -195,7 +195,10 @@ void PropertyWindow::SetProperty(bool warn)
}
case StructProperty::Float:
{
tool->propValue.Float = format::StringToTemperature(value, tool->gameModel->GetTemperatureScale());
if (properties[property->GetOption().second].Name == "temp")
tool->propValue.Float = format::StringToTemperature(value, tool->gameModel->GetTemperatureScale());
else
tool->propValue.Float = value.ToNumber<float>();
}
break;
default: