mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 13:40:12 +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:
|
||||
{
|
||||
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