mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[3.5] Update NavigationServer backport
Backports features and bugfixes from current Godot 4.0 to 3.5 and brings functions and codebase of both version largely in sync to make tutorials more compatible and future backports easier.
This commit is contained in:
parent
0d2be435ea
commit
8bd7c6188b
60 changed files with 1859 additions and 749 deletions
|
|
@ -4304,6 +4304,16 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (tokenizer->get_token() == GDScriptTokenizer::TK_IDENTIFIER && tokenizer->get_token_identifier() == "LAYERS_2D_NAVIGATION") {
|
||||
_ADVANCE_AND_CONSUME_NEWLINES;
|
||||
if (tokenizer->get_token() != GDScriptTokenizer::TK_PARENTHESIS_CLOSE) {
|
||||
_set_error("Expected \")\" in the layers 2D navigation hint.");
|
||||
return;
|
||||
}
|
||||
current_export.hint = PROPERTY_HINT_LAYERS_2D_PHYSICS;
|
||||
break;
|
||||
}
|
||||
|
||||
if (tokenizer->get_token() == GDScriptTokenizer::TK_IDENTIFIER && tokenizer->get_token_identifier() == "LAYERS_3D_RENDER") {
|
||||
_ADVANCE_AND_CONSUME_NEWLINES;
|
||||
if (tokenizer->get_token() != GDScriptTokenizer::TK_PARENTHESIS_CLOSE) {
|
||||
|
|
@ -4324,6 +4334,16 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (tokenizer->get_token() == GDScriptTokenizer::TK_IDENTIFIER && tokenizer->get_token_identifier() == "LAYERS_3D_NAVIGATION") {
|
||||
_ADVANCE_AND_CONSUME_NEWLINES;
|
||||
if (tokenizer->get_token() != GDScriptTokenizer::TK_PARENTHESIS_CLOSE) {
|
||||
_set_error("Expected \")\" in the layers 3D navigation hint.");
|
||||
return;
|
||||
}
|
||||
current_export.hint = PROPERTY_HINT_LAYERS_3D_NAVIGATION;
|
||||
break;
|
||||
}
|
||||
|
||||
if (tokenizer->get_token() == GDScriptTokenizer::TK_CONSTANT && tokenizer->get_token_constant().get_type() == Variant::STRING) {
|
||||
//enumeration
|
||||
current_export.hint = PROPERTY_HINT_ENUM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue