made visual script switch more flexible

This commit is contained in:
Juan Linietsky
2016-09-01 20:04:17 -03:00
parent 9d29d41f2d
commit af1704dc52
4 changed files with 54 additions and 54 deletions

View File

@@ -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;