mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Refactored variant setters/getters
-Discern between named, indexed and keyed -Get direct access to functions for typed GDScript and GDNative bindings -Small changes to some classes in order to work with the new setget binder
This commit is contained in:
parent
709964849f
commit
05de7ce6ca
16 changed files with 1571 additions and 1996 deletions
|
@ -1341,7 +1341,7 @@ public:
|
|||
}
|
||||
|
||||
bool valid;
|
||||
r_ret = base.get_named(index->name, &valid);
|
||||
r_ret = base.get_named(index->name, valid);
|
||||
if (!valid) {
|
||||
r_error_str = "Invalid index '" + String(index->name) + "' for base of type " + Variant::get_type_name(base.get_type()) + ".";
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue