mirror of
https://github.com/godotengine/godot.git
synced 2026-03-06 13:01:11 +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
|
|
@ -174,7 +174,7 @@ float VisualScriptYield::get_wait_time() {
|
|||
void VisualScriptYield::_validate_property(PropertyInfo &property) const {
|
||||
if (property.name == "wait_time") {
|
||||
if (yield_mode != YIELD_WAIT) {
|
||||
property.usage = 0;
|
||||
property.usage = PROPERTY_USAGE_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -421,7 +421,7 @@ void VisualScriptYieldSignal::_validate_property(PropertyInfo &property) const {
|
|||
|
||||
if (property.name == "node_path") {
|
||||
if (call_mode != CALL_MODE_NODE_PATH) {
|
||||
property.usage = 0;
|
||||
property.usage = PROPERTY_USAGE_NONE;
|
||||
} else {
|
||||
Node *bnode = _get_base_node();
|
||||
if (bnode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue