You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Don't ignore the type mismatch in setter function
This commit is contained in:
@@ -1257,6 +1257,8 @@ bool GDScriptInstance::set(const StringName &p_name, const Variant &p_value) {
|
|||||||
call(member->setter, &val, 1, err);
|
call(member->setter, &val, 1, err);
|
||||||
if (err.error == Callable::CallError::CALL_OK) {
|
if (err.error == Callable::CallError::CALL_OK) {
|
||||||
return true; //function exists, call was successful
|
return true; //function exists, call was successful
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (member->data_type.has_type) {
|
if (member->data_type.has_type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user