summaryrefslogtreecommitdiffstats
path: root/core/io/resource_format_binary.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-01-27 21:16:20 +0100
committerGitHub <noreply@github.com>2021-01-27 21:16:20 +0100
commit976e768e71310766ac3927118b15eee03a15cfdb (patch)
treeae4102e4286723456653483856db0f1255543324 /core/io/resource_format_binary.cpp
parent9d3a9b3e7dff8a3645fbb7fe95cd1e8141ba1802 (diff)
parent1be0d6b30e673b209fa8b1f2aa77995c9534df5e (diff)
downloadredot-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.cpp10
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;