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:
|
case StructProperty::Float:
|
||||||
{
|
{
|
||||||
|
if (properties[property->GetOption().second].Name == "temp")
|
||||||
tool->propValue.Float = format::StringToTemperature(value, tool->gameModel->GetTemperatureScale());
|
tool->propValue.Float = format::StringToTemperature(value, tool->gameModel->GetTemperatureScale());
|
||||||
|
else
|
||||||
|
tool->propValue.Float = value.ToNumber<float>();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user