You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
properly save external resources, fixes #1924
added API to get scancode names to OS
This commit is contained in:
@@ -343,6 +343,8 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
||||
#endif
|
||||
|
||||
if (!valid) {
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
||||
if (ret.get_type()==Variant::STRING) {
|
||||
//return a string when invalid with the error
|
||||
err_text=ret;
|
||||
@@ -350,7 +352,9 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
||||
} else {
|
||||
err_text="Invalid operands '"+Variant::get_type_name(a->get_type())+"' and '"+Variant::get_type_name(b->get_type())+"' in operator '"+Variant::get_operator_name(op)+"'.";
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
||||
}
|
||||
#ifdef DEBUG_ENABLED
|
||||
*dst=ret;
|
||||
|
||||
Reference in New Issue
Block a user