diff options
author | George Marques <george@gmarqu.es> | 2023-01-30 14:50:08 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2023-02-02 10:20:35 -0300 |
commit | 5fc79185943e0d3eeb5645ca6d44457170abe809 (patch) | |
tree | 192d3d0eb8d3be1338f56aa532b065f85bd20b9e /core | |
parent | 315d3c4d21e4ee7df1e45593205e35d7a034aa6d (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')
-rw-r--r-- | core/variant/variant.cpp | 9 |
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: { } |