diff options
author | Jacques Lucke <jacques@blender.org> | 2022-05-18 18:00:19 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-05-18 18:00:38 +0300 |
commit | 2e70af5cd527e2c1f40e6f3af22adc3337714744 (patch) | |
tree | c5e55df22f2e53d044e541c8d5b1392de30786f5 /source/blender/blenkernel/intern/geometry_component_instances.cc | |
parent | 342e12d6d92198bba8355562600a2f97bb45fed5 (diff) |
Fix T97761: incorrect mixing of integers
Sometimes integers are mixed using float weights. In those cases
the mixed result has to be converted from into float again.
Previously, this was done using a simple cast, which was unexpected
because e.g. 14.999 would be cast to 14 instead of 15.
Now, the values are rounded properly.
This can affect existing files unfortunately without a good option
for versioning. Gladly, very few files seem to depend on the details
of the old behavior.
Differential Revision: https://developer.blender.org/D14892
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_component_instances.cc')
0 files changed, 0 insertions, 0 deletions