You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #54117 from Pineapple/dont-ignore-type-mismatch-in-setter
This commit is contained in:
@@ -961,6 +961,8 @@ bool GDScriptInstance::set(const StringName &p_name, const Variant &p_value) {
|
||||
call(member->setter, &val, 1, err);
|
||||
if (err.error == Variant::CallError::CALL_OK) {
|
||||
return true; //function exists, call was successful
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (!member->data_type.is_type(p_value)) {
|
||||
|
||||
Reference in New Issue
Block a user