mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Merge pull request #69590 from anvilfolk/enums
GDScript enum fixes & refactor
This commit is contained in:
commit
509da86205
61 changed files with 699 additions and 97 deletions
|
|
@ -213,7 +213,7 @@ static bool _have_exact_arguments(const MethodBind *p_method, const Vector<GDScr
|
|||
}
|
||||
|
||||
GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &codegen, Error &r_error, const GDScriptParser::ExpressionNode *p_expression, bool p_root, bool p_initializer, const GDScriptCodeGenerator::Address &p_index_addr) {
|
||||
if (p_expression->is_constant) {
|
||||
if (p_expression->is_constant && !p_expression->get_datatype().is_meta_type) {
|
||||
return codegen.add_constant(p_expression->reduced_value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue