Fix Unable to use ResourceLoader in C# after threaded load in GDScript #92798
This commit is contained in:
parent
27552a2f26
commit
27d1fb63e1
6 changed files with 36 additions and 7 deletions
|
|
@ -803,6 +803,10 @@ bool Array::is_same_typed(const Array &p_other) const {
|
|||
return _p->typed == p_other._p->typed;
|
||||
}
|
||||
|
||||
bool Array::is_same_instance(const Array &p_other) const {
|
||||
return _p == p_other._p;
|
||||
}
|
||||
|
||||
uint32_t Array::get_typed_builtin() const {
|
||||
return _p->typed.type;
|
||||
}
|
||||
|
|
@ -815,6 +819,12 @@ Variant Array::get_typed_script() const {
|
|||
return _p->typed.script;
|
||||
}
|
||||
|
||||
Array Array::create_read_only() {
|
||||
Array array;
|
||||
array.make_read_only();
|
||||
return array;
|
||||
}
|
||||
|
||||
void Array::make_read_only() {
|
||||
if (_p->read_only == nullptr) {
|
||||
_p->read_only = memnew(Variant);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue