Always store ID of PopupMenu items

This commit is contained in:
kobewi
2024-08-20 12:38:33 +02:00
parent 826de7976a
commit 5279fec60f
4 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ void PropertyListHelper::get_property_list(List<PropertyInfo> *p_list) const {
const Property &property = E.value;
PropertyInfo info = property.info;
if (_call_getter(&property, i) == property.default_value) {
if (!(info.usage & PROPERTY_USAGE_STORE_IF_NULL) && _call_getter(&property, i) == property.default_value) {
info.usage &= (~PROPERTY_USAGE_STORAGE);
}