Closed LLipter closed 1 year ago
@LLipter there was a point in UpdateFromInfo that was assigning _unit in production, which I just changed to check and throw an exception. can you do the same in this branch and test? Thanks
@rdiankov Sure, I also update my MR on webstack to throw an error in this situation
@LLipter did you actually test, this simple scene fails:
{
"bodies":[{
"name":"C",
"links":[{
"name":"L",
"geometries":[{
"name":"G",
"type":"cylinder",
"radius":1,
"height":1
}]
}]
}],
"unitInfo": {
"lengthUnit":"mm"
}
}
thanks~
This pull request replaces
unit
in the environment withUnitInfo
object. It also updates all related python bindings.