Fix VisualScriptPropertySet value hint

(cherry picked from commit 0c9947cb2f)
This commit is contained in:
David Cambré 2021-08-29 15:42:04 +02:00 committed by Rémi Verschelde
parent 758428dd9f
commit 5144cbf8ed
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -1042,7 +1042,7 @@ PropertyInfo VisualScriptPropertySet::get_input_value_port_info(int p_idx) const
ClassDB::get_property_list(_get_base_type(), &props, false);
for (List<PropertyInfo>::Element *E = props.front(); E; E = E->next()) {
if (E->get().name == property) {
PropertyInfo pinfo = PropertyInfo(E->get().type, "value", PROPERTY_HINT_TYPE_STRING, E->get().hint_string);
PropertyInfo pinfo = PropertyInfo(E->get().type, "value", E->get().hint, E->get().hint_string);
_adjust_input_index(pinfo);
return pinfo;
}