Refactored variant constructor logic
This commit is contained in:
parent
593e35346a
commit
221a2a1742
33 changed files with 1369 additions and 571 deletions
|
|
@ -1690,7 +1690,8 @@ Variant::Type Object::get_static_property_type_indexed(const Vector<StringName>
|
|||
}
|
||||
|
||||
Callable::CallError ce;
|
||||
Variant check = Variant::construct(t, nullptr, 0, ce);
|
||||
Variant check;
|
||||
Variant::construct(t, check, nullptr, 0, ce);
|
||||
|
||||
for (int i = 1; i < p_path.size(); i++) {
|
||||
if (check.get_type() == Variant::OBJECT || check.get_type() == Variant::DICTIONARY || check.get_type() == Variant::ARRAY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue