mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 14:41:07 +00:00
Don't ignore the type mismatch in setter function
This commit is contained in:
parent
6ef38d2f2f
commit
42cce2891f
1 changed files with 2 additions and 0 deletions
|
|
@ -1257,6 +1257,8 @@ bool GDScriptInstance::set(const StringName &p_name, const Variant &p_value) {
|
|||
call(member->setter, &val, 1, err);
|
||||
if (err.error == Callable::CallError::CALL_OK) {
|
||||
return true; //function exists, call was successful
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (member->data_type.has_type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue