Use PROPERTY_USAGE_NONE instead of 0 for no property usage

Also use const more often.
This commit is contained in:
Aaron Franke 2021-06-30 21:24:34 -04:00
parent 382ddd497a
commit 2508fd0533
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
39 changed files with 126 additions and 126 deletions

View file

@ -1534,7 +1534,7 @@ void VisualScriptConstant::_validate_property(PropertyInfo &property) const {
if (property.name == "value") {
property.type = type;
if (type == Variant::NIL) {
property.usage = 0; //do not save if nil
property.usage = PROPERTY_USAGE_NONE; //do not save if nil
}
}
}
@ -2124,7 +2124,7 @@ void VisualScriptBasicTypeConstant::_validate_property(PropertyInfo &property) c
Variant::get_constants_for_type(type, &constants);
if (constants.size() == 0) {
property.usage = 0;
property.usage = PROPERTY_USAGE_NONE;
return;
}
property.hint_string = "";