mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add a keyword for abstract classes in GDScript
Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
This commit is contained in:
parent
730adf4801
commit
067704f1cd
17 changed files with 137 additions and 42 deletions
|
|
@ -2710,6 +2710,7 @@ Error GDScriptCompiler::_prepare_compilation(GDScript *p_script, const GDScriptP
|
|||
p_script->clearing = false;
|
||||
|
||||
p_script->tool = parser->is_tool();
|
||||
p_script->_is_abstract = p_class->is_abstract;
|
||||
|
||||
if (p_script->local_name != StringName()) {
|
||||
if (ClassDB::class_exists(p_script->local_name) && ClassDB::is_class_exposed(p_script->local_name)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue