diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-10 18:13:16 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-10 18:13:16 -0500 |
commit | 9d5a7321a54f2a27ff8b273083c8f30e23bfd0ec (patch) | |
tree | 6d941556921414bc16fcea4564c01948341f7b0f /editor/plugins/font_config_plugin.cpp | |
parent | 44b797fbe63aa8a9803836b9e4c6a175c24cb755 (diff) | |
parent | b9d25580ce2a8d00bf372c5304f6d7c65141fac9 (diff) | |
download | redot-engine-9d5a7321a54f2a27ff8b273083c8f30e23bfd0ec.tar.gz |
Merge pull request #95175 from KoBeWi/bruh_can_revert
Fix implementation of `property_can_revert()` in various classes
Diffstat (limited to 'editor/plugins/font_config_plugin.cpp')
-rw-r--r-- | editor/plugins/font_config_plugin.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/editor/plugins/font_config_plugin.cpp b/editor/plugins/font_config_plugin.cpp index ec9513363d..6366d20539 100644 --- a/editor/plugins/font_config_plugin.cpp +++ b/editor/plugins/font_config_plugin.cpp @@ -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; } |