diff options
author | Yuri Sizov <yuris@humnom.net> | 2022-08-12 23:57:11 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2022-08-22 18:35:11 +0300 |
commit | 1a24c9e14bf1f9578eda338344c12faf66fb0e65 (patch) | |
tree | ada6f4deefe627b4a77133ef3c074e35d6f2a738 /scene/main/viewport.cpp | |
parent | fdc36ad08290a8453d26fce3d8b7b13bd8cd5a1a (diff) |
Make `_validate_property` a multilevel method
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r-- | scene/main/viewport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 584fad9648..cc356e513c 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -3953,9 +3953,9 @@ void Viewport::_bind_methods() { BIND_ENUM_CONSTANT(VRS_MAX); } -void Viewport::_validate_property(PropertyInfo &property) const { - if (vrs_mode != VRS_TEXTURE && (property.name == "vrs_texture")) { - property.usage = PROPERTY_USAGE_NO_EDITOR; +void Viewport::_validate_property(PropertyInfo &p_property) const { + if (vrs_mode != VRS_TEXTURE && (p_property.name == "vrs_texture")) { + p_property.usage = PROPERTY_USAGE_NO_EDITOR; } } |