You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix Unable to use ResourceLoader in C# after threaded load in GDScript #92798
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user