diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 02:53:49 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 02:53:49 +0300 |
commit | 15f3cf7f8f956a6372b6a99788b622946ba3d1e5 (patch) | |
tree | 0ad4fe0aeb21ea4773088b0c92cc7bcb48d5e2a5 /source/blender/blenkernel/intern/scene.cc | |
parent | e746999aa937f6de638a339d52e1f2e494014919 (diff) |
Cleanup: replace C-style casts with functional casts for numeric types
Some changes missed from f68cfd6bb078482c4a779a6e26a56e2734edb5b8.
Diffstat (limited to 'source/blender/blenkernel/intern/scene.cc')
-rw-r--r-- | source/blender/blenkernel/intern/scene.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/scene.cc b/source/blender/blenkernel/intern/scene.cc index 7959ab845e8..6d10d31e976 100644 --- a/source/blender/blenkernel/intern/scene.cc +++ b/source/blender/blenkernel/intern/scene.cc @@ -159,8 +159,8 @@ static void scene_init_data(ID *id) scene->unit.length_unit = uchar(BKE_unit_base_of_type_get(USER_UNIT_METRIC, B_UNIT_LENGTH)); scene->unit.mass_unit = uchar(BKE_unit_base_of_type_get(USER_UNIT_METRIC, B_UNIT_MASS)); scene->unit.time_unit = uchar(BKE_unit_base_of_type_get(USER_UNIT_METRIC, B_UNIT_TIME)); - scene->unit.temperature_unit = (uchar)BKE_unit_base_of_type_get(USER_UNIT_METRIC, - B_UNIT_TEMPERATURE); + scene->unit.temperature_unit = uchar( + BKE_unit_base_of_type_get(USER_UNIT_METRIC, B_UNIT_TEMPERATURE)); /* Anti-Aliasing threshold. */ scene->grease_pencil_settings.smaa_threshold = 1.0f; |