Revert unnecessary changes to VisualScriptEmitSignal

Revert unnecessary changes to VisualScriptEmitSignal, commit 2032b56005b2f6add6b105a00f04c05f9b292eec
This commit is contained in:
David Cambré 2021-07-23 16:45:14 +02:00
parent 995093f59d
commit 74ca014364
2 changed files with 1 additions and 14 deletions

View file

@ -2268,7 +2268,7 @@ int VisualScriptEmitSignal::get_input_value_port_count() const {
}
int VisualScriptEmitSignal::get_output_value_port_count() const {
return 1;
return 0;
}
String VisualScriptEmitSignal::get_output_sequence_port_text(int p_port) const {
@ -2311,16 +2311,6 @@ StringName VisualScriptEmitSignal::get_signal() const {
return name;
}
void VisualScriptEmitSignal::_adjust_input_index(PropertyInfo &pinfo) const {
if (index != StringName()) {
Variant v;
Callable::CallError ce;
Variant::construct(pinfo.type, v, nullptr, 0, ce);
Variant i = v.get(index);
pinfo.type = i.get_type();
}
}
void VisualScriptEmitSignal::_validate_property(PropertyInfo &property) const {
if (property.name == "signal") {
property.hint = PROPERTY_HINT_ENUM;

View file

@ -328,9 +328,6 @@ class VisualScriptEmitSignal : public VisualScriptNode {
private:
StringName name;
StringName index;
void _adjust_input_index(PropertyInfo &pinfo) const;
protected:
virtual void _validate_property(PropertyInfo &property) const override;