You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Make VisualScript check inheritance for port info
This commit is contained in:
@@ -1039,7 +1039,7 @@ PropertyInfo VisualScriptPropertySet::get_input_value_port_info(int p_idx) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<PropertyInfo> props;
|
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()) {
|
for (List<PropertyInfo>::Element *E = props.front(); E; E = E->next()) {
|
||||||
if (E->get().name == property) {
|
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", 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 {
|
PropertyInfo VisualScriptPropertyGet::get_output_value_port_info(int p_idx) const {
|
||||||
List<PropertyInfo> props;
|
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()) {
|
for (List<PropertyInfo>::Element *E = props.front(); E; E = E->next()) {
|
||||||
if (E->get().name == property) {
|
if (E->get().name == property) {
|
||||||
return PropertyInfo(E->get().type, "value." + String(index));
|
return PropertyInfo(E->get().type, "value." + String(index));
|
||||||
|
|||||||
Reference in New Issue
Block a user