You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Also closes: #6801 This reverts commite59820ac94. (cherry picked from commit11349a786b)
This commit is contained in:
committed by
Rémi Verschelde
parent
728ac94313
commit
d5ee98bb2c
@@ -840,10 +840,6 @@ void GDFunctions::call(Function p_func,const Variant **p_args,int p_arg_count,Va
|
||||
r_error.error=Variant::CallError::CALL_ERROR_INVALID_ARGUMENT;
|
||||
r_error.argument=0;
|
||||
r_ret=Variant();
|
||||
} else if(((String)(*p_args[0])).begins_with("/")) {
|
||||
r_error.error=Variant::CallError::CALL_ERROR_INVALID_ARGUMENT;
|
||||
r_error.argument=0;
|
||||
r_ret=RTR("Paths cannot start with '/', absolute paths must start with 'res://', 'user://', or 'local://'");
|
||||
} else {
|
||||
r_ret=ResourceLoader::load(*p_args[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user