summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2023-01-30 14:50:08 -0300
committerGeorge Marques <george@gmarqu.es>2023-02-02 10:20:35 -0300
commit5fc79185943e0d3eeb5645ca6d44457170abe809 (patch)
tree192d3d0eb8d3be1338f56aa532b065f85bd20b9e /core/variant
parent315d3c4d21e4ee7df1e45593205e35d7a034aa6d (diff)
GDScript: Improve usability of setter chains
- Consider PackedArrays non-shared since they are copied on C++/script boundaries. - Add error messages in the analyzer when assigning to read-only properties. - Add specific error message at runtime when assignment fails because the property is read-only.
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp
index 672b030806..04e1561a0c 100644
--- a/core/variant/variant.cpp
+++ b/core/variant/variant.cpp
@@ -3601,15 +3601,6 @@ bool Variant::is_type_shared(Variant::Type p_type) {
case OBJECT:
case ARRAY:
case DICTIONARY:
- case PACKED_BYTE_ARRAY:
- case PACKED_INT32_ARRAY:
- case PACKED_INT64_ARRAY:
- case PACKED_FLOAT32_ARRAY:
- case PACKED_FLOAT64_ARRAY:
- case PACKED_STRING_ARRAY:
- case PACKED_VECTOR2_ARRAY:
- case PACKED_VECTOR3_ARRAY:
- case PACKED_COLOR_ARRAY:
return true;
default: {
}