Fix float parsing in the PROP tool
This commit is contained in:
parent
22e1de3fe8
commit
9f6f43cf90
@ -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