Blender Git Loki
Git Commits -> Revision 95289ad
Revision 95289ad by Bastien Montagne (temp-pyapi-units) June 17, 2014, 12:55 (GMT) |
Add more tests to bpyunits. Only LENGTH type for now. This showed two limits to current BKE's units code: * When converting string to value, we use too few precision for units' values (6 digits), not good esp. when mixing big and small units (like e.g. miles and inches). Will fix that in next commit. * When converting values to string, 'precision' parameter ignores order of magnitude of the value, which leads to invalid results with big numbers (e.g. 1000000mi gives 1000000.004mi with prec of 3). |
Commit Details:
Full Hash: 95289adbee0ee59a15b97c6166343dcb120c7a37
Parent Commit: d2d1cbb
Lines Changed: +44, -3
1 Modified Path:
/source/tests/bl_pyapi_units.py (+44, -3) (Diff)