diff options
author | Rindbee <idleman@yeah.net> | 2022-05-01 09:24:45 +0800 |
---|---|---|
committer | Rindbee <idleman@yeah.net> | 2022-09-16 07:22:50 +0800 |
commit | 9066d5576346fccef1aca5c0f80c5c97216bb9b7 (patch) | |
tree | a6684725ea7c462d5c588359d2a6ee31eea34c8b /editor/localization_editor.cpp | |
parent | c2babb65580d4dce3a0fc8834dd05fe177227b6e (diff) |
Update checked based on the variant type of the value
In `EditorProperty::update_revert_and_pin_status`, if `checkable` is `true`, update `checked` based on the variant type of the value, and rename the function as `EditorProperty::update_editor_property_status`.
**Known problems:**
1. Unable to check Checkbox for properties of type `Object` when it is unchecked. This is probably because during value store/fetch, the `nullptr` (variant type is `Variant::OBJECT`) eventually becomes `Variant()` (variant type is `Variant::NIL`).
2. For theme overrides, click the revert icon will uncheck the Checkbox. This is probably because `EditorPropertyRevert::get_property_revert_value` returns `Variant()`.
Diffstat (limited to 'editor/localization_editor.cpp')
0 files changed, 0 insertions, 0 deletions