Merge pull request #50779 from DavidCambre/Revert-unnecessary-changes
Revert unnecessary changes to VisualScriptEmitSignal
This commit is contained in:
commit
28160e1a6f
|
@ -2268,7 +2268,7 @@ int VisualScriptEmitSignal::get_input_value_port_count() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
int VisualScriptEmitSignal::get_output_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 {
|
String VisualScriptEmitSignal::get_output_sequence_port_text(int p_port) const {
|
||||||
|
@ -2311,16 +2311,6 @@ StringName VisualScriptEmitSignal::get_signal() const {
|
||||||
return name;
|
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 {
|
void VisualScriptEmitSignal::_validate_property(PropertyInfo &property) const {
|
||||||
if (property.name == "signal") {
|
if (property.name == "signal") {
|
||||||
property.hint = PROPERTY_HINT_ENUM;
|
property.hint = PROPERTY_HINT_ENUM;
|
||||||
|
|
|
@ -328,9 +328,6 @@ class VisualScriptEmitSignal : public VisualScriptNode {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
StringName name;
|
StringName name;
|
||||||
StringName index;
|
|
||||||
|
|
||||||
void _adjust_input_index(PropertyInfo &pinfo) const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void _validate_property(PropertyInfo &property) const override;
|
virtual void _validate_property(PropertyInfo &property) const override;
|
||||||
|
|
Loading…
Reference in New Issue