1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fix implementation of property_can_revert() in various classes

This commit is contained in:
kobewi
2024-08-06 00:11:02 +02:00
parent db66bd35af
commit b9d25580ce
6 changed files with 32 additions and 65 deletions

View File

@@ -121,13 +121,8 @@ bool EditorPropertyFontOTObject::_property_can_revert(const StringName &p_name)
if (name.begins_with("keys")) {
int key = name.get_slicec('/', 1).to_int();
if (defaults_dict.has(key) && dict.has(key)) {
int value = dict[key];
Vector3i range = defaults_dict[key];
return range.z != value;
}
return defaults_dict.has(key) && dict.has(key);
}
return false;
}
@@ -142,7 +137,6 @@ bool EditorPropertyFontOTObject::_property_get_revert(const StringName &p_name,
return true;
}
}
return false;
}