mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
Also use const more often.
This commit is contained in:
parent
382ddd497a
commit
2508fd0533
39 changed files with 126 additions and 126 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue