summaryrefslogtreecommitdiff
path: root/core/variant_parser.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-07-25 21:05:42 +0200
committerGitHub <noreply@github.com>2017-07-25 21:05:42 +0200
commita931052c791d8ca965bd40e854f41885ac54e38a (patch)
tree9eec31cac307661ebc36bc72ad71e2a3464c60d9 /core/variant_parser.cpp
parente4fe194fe5fab49421c26dc26f4b8fc996a39e1e (diff)
parent72436956ddcdfdcb9edea5c447363391c23552c4 (diff)
Merge pull request #9731 from Xrayez/gdscript-completion
Update GDScript completion names for Pool*Arrays
Diffstat (limited to 'core/variant_parser.cpp')
-rw-r--r--core/variant_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp
index 26a6a05a30..398f20caf3 100644
--- a/core/variant_parser.cpp
+++ b/core/variant_parser.cpp
@@ -1099,7 +1099,7 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
return OK;
- } else if (id == "PoolFloatArray" || id == "FloatArray") {
+ } else if (id == "PoolRealArray" || id == "FloatArray") {
Vector<float> args;
Error err = _parse_construct<float>(p_stream, args, line, r_err_str);
@@ -1855,7 +1855,7 @@ Error VariantWriter::write(const Variant &p_variant, StoreStringFunc p_store_str
} break;
case Variant::POOL_REAL_ARRAY: {
- p_store_string_func(p_store_string_ud, "PoolFloatArray( ");
+ p_store_string_func(p_store_string_ud, "PoolRealArray( ");
PoolVector<real_t> data = p_variant;
int len = data.size();
PoolVector<real_t>::Read r = data.read();