Commit 23cec08
bodymovin
add support to round decimals in to string converter
Because of floating point precision, rounding decimals in a number doesn't behave the same way as rounding decimals when converting to a string.
This PR adds support to round decimals on the toString converter directly.
It also adds a flag to remove trailing zeros.
Diffs=
8d30360d74 add support to round decimals in to string converter (#8948)1 parent adf3b8c commit 23cec08
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Submodule rive-runtime updated 9 files
- .rive_head+1-1
- dev/defs/data_bind/converters/data_converter_to_string.json+21-1
- include/rive/animation/data_converter_to_string_flags.hpp+21
- include/rive/data_bind/converters/data_converter_string_remove_zeros.hpp+1
- include/rive/data_bind/converters/data_converter_to_string.hpp+2
- include/rive/generated/core_registry.hpp+16
- include/rive/generated/data_bind/converters/data_converter_to_string_base.hpp+53
- src/data_bind/converters/data_converter_string_remove_zeros.cpp+18-14
- src/data_bind/converters/data_converter_to_string.cpp+30-3
0 commit comments