1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Merge pull request #25018 from AllanDaemon/#24895

Fix support for optional parameters in setters
This commit is contained in:
George Marques
2019-02-24 10:45:50 -03:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -221,6 +221,7 @@ public:
virtual DataType get_datatype() const { return return_type; }
virtual void set_datatype(const DataType &p_datatype) { return_type = p_datatype; }
int get_required_argument_count() { return arguments.size() - default_values.size(); }
FunctionNode() {
type = TYPE_FUNCTION;