From 65ae4976eb7dfaa472aba7a9931b5beb537fe21a Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 1 Sep 2016 20:04:17 -0300 Subject: made visual script switch more flexible --- modules/visual_script/visual_script_flow_control.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/visual_script/visual_script_flow_control.h') diff --git a/modules/visual_script/visual_script_flow_control.h b/modules/visual_script/visual_script_flow_control.h index e1730a2264..e0da84a534 100644 --- a/modules/visual_script/visual_script_flow_control.h +++ b/modules/visual_script/visual_script_flow_control.h @@ -203,7 +203,6 @@ class VisualScriptSwitch : public VisualScriptNode { struct Case { Variant::Type type; - Variant value; Case() { type=Variant::NIL; } }; @@ -224,6 +223,7 @@ public: virtual String get_output_sequence_port_text(int p_port) const; + virtual bool has_mixed_input_and_sequence_ports() const { return true; } virtual int get_input_value_port_count() const; -- cgit v1.2.3