mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-19 14:41:29 +02:00
Fix float parsing in the PROP tool
This commit is contained in:
@@ -179,7 +179,10 @@ void PropertyWindow::SetProperty()
|
||||
float v = value.SubstrFromEnd(1).ToNumber<float>();
|
||||
tool->propValue.Float = (v-32.0f)*5/9+273.15f;
|
||||
}
|
||||
tool->propValue.Float = value.ToNumber<float>();
|
||||
else
|
||||
{
|
||||
tool->propValue.Float = value.ToNumber<float>();
|
||||
}
|
||||
#ifdef DEBUG
|
||||
std::cout << "Got float value " << tool->propValue.Float << std::endl;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user