1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

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

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;
}