Merge pull request #32673 from aaronfranke/vs-inheritance

Make VisualScript check inheritance for port info
This commit is contained in:
Rémi Verschelde 2019-10-09 17:52:51 +02:00 committed by GitHub
commit 781e4f8673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1039,7 +1039,7 @@ PropertyInfo VisualScriptPropertySet::get_input_value_port_info(int p_idx) const
}
List<PropertyInfo> props;
ClassDB::get_property_list(_get_base_type(), &props, true);
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);
@ -1808,7 +1808,7 @@ PropertyInfo VisualScriptPropertyGet::get_input_value_port_info(int p_idx) const
PropertyInfo VisualScriptPropertyGet::get_output_value_port_info(int p_idx) const {
List<PropertyInfo> props;
ClassDB::get_property_list(_get_base_type(), &props, true);
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) {
return PropertyInfo(E->get().type, "value." + String(index));