1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #28099 from lupoDharkael/fix-completion

Fix code completion not working with class_name
This commit is contained in:
Rémi Verschelde
2019-06-03 14:01:07 +02:00
committed by GitHub
9 changed files with 20 additions and 20 deletions

View File

@@ -3497,7 +3497,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
_set_error("'class_name' is only valid for the main class namespace.");
return;
}
if (self_path.empty()) {
if (self_path.begins_with("res://") && self_path.find("::") != -1) {
_set_error("'class_name' not allowed in built-in scripts.");
return;
}