Fix property tool converting x / y values as temperatures
This commit is contained in:
parent
476be15e77
commit
932f28bcd7
@ -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:
|
||||
|
Reference in New Issue
Block a user