Merge pull request #23346 from santouits/you-shall-not-execute

Error running Expression.execute after parse error
This commit is contained in:
Juan Linietsky 2018-11-01 14:02:18 -03:00 committed by GitHub
commit 34426be9a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2120,6 +2120,10 @@ Error Expression::parse(const String &p_expression, const Vector<String> &p_inpu
}
Variant Expression::execute(Array p_inputs, Object *p_base, bool p_show_error) {
if (error_set) {
ERR_EXPLAIN("There was previously a parse error: " + error_str);
ERR_FAIL_V(Variant());
}
execution_error = false;
Variant output;