diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-01-27 21:16:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-27 21:16:20 +0100 |
| commit | 976e768e71310766ac3927118b15eee03a15cfdb (patch) | |
| tree | ae4102e4286723456653483856db0f1255543324 /core/io/resource_format_binary.cpp | |
| parent | 9d3a9b3e7dff8a3645fbb7fe95cd1e8141ba1802 (diff) | |
| parent | 1be0d6b30e673b209fa8b1f2aa77995c9534df5e (diff) | |
| download | redot-engine-976e768e71310766ac3927118b15eee03a15cfdb.tar.gz | |
Merge pull request #45489 from aaronfranke/core
Type consistencies in core
Diffstat (limited to 'core/io/resource_format_binary.cpp')
| -rw-r--r-- | core/io/resource_format_binary.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp index ae4643a19f..fad58d65fd 100644 --- a/core/io/resource_format_binary.cpp +++ b/core/io/resource_format_binary.cpp @@ -261,11 +261,11 @@ Error ResourceLoaderBinary::parse_variant(Variant &r_v) { r_v = v; } break; case VARIANT_COLOR: { - Color v; - v.r = f->get_real(); - v.g = f->get_real(); - v.b = f->get_real(); - v.a = f->get_real(); + Color v; // Colors should always be in single-precision. + v.r = f->get_float(); + v.g = f->get_float(); + v.b = f->get_float(); + v.a = f->get_float(); r_v = v; } break; |
