mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-09 01:46:29 +02:00
Fix property tool converting x / y values as temperatures
This commit is contained in:
@@ -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