diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-09 05:17:59 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-09 05:17:59 +0300 |
commit | d455f1a0baacac952792f36a30ac254a07510ac7 (patch) | |
tree | 4d6e16f4d6f22053048ae2c614a38a113834110f /source/blender/draw/intern/draw_resource.hh | |
parent | ce5ad663305a46a61e95ade1700b9b290c6847f6 (diff) |
Cleanup: quiet conversion warning
Diffstat (limited to 'source/blender/draw/intern/draw_resource.hh')
-rw-r--r-- | source/blender/draw/intern/draw_resource.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_resource.hh b/source/blender/draw/intern/draw_resource.hh index 22ee43592a9..2df38e32ed2 100644 --- a/source/blender/draw/intern/draw_resource.hh +++ b/source/blender/draw/intern/draw_resource.hh @@ -85,10 +85,11 @@ inline void ObjectInfos::sync(const blender::draw::ObjectRef ref, bool is_active if (ref.dupli_object == nullptr) { /* TODO(fclem): this is rather costly to do at draw time. Maybe we can * put it in ob->runtime and make depsgraph ensure it is up to date. */ - random = BLI_hash_int_2d(BLI_hash_string(ref.object->id.name + 2), 0) * (1.0f / 0xFFFFFFFF); + random = BLI_hash_int_2d(BLI_hash_string(ref.object->id.name + 2), 0) * + (1.0f / (float)0xFFFFFFFF); } else { - random = ref.dupli_object->random_id * (1.0f / 0xFFFFFFFF); + random = ref.dupli_object->random_id * (1.0f / (float)0xFFFFFFFF); } /* Default values. Set if needed. */ random = 0.0f; |