Merge pull request #32673 from aaronfranke/vs-inheritance
Make VisualScript check inheritance for port info
This commit is contained in:
commit
781e4f8673
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue