소스 검색

Merge pull request #87124 from rsubtil/bugfix-warn_as_err

Simplify script paths to ensure proper resource path checks
Rémi Verschelde 1 년 전
부모
커밋
9a793d95eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/gdscript/gdscript_parser.cpp

+ 1 - 1
modules/gdscript/gdscript_parser.cpp

@@ -330,7 +330,7 @@ Error GDScriptParser::parse(const String &p_source_code, const String &p_script_
 
 	tokenizer.set_source_code(source);
 	tokenizer.set_cursor_position(cursor_line, cursor_column);
-	script_path = p_script_path;
+	script_path = p_script_path.simplify_path();
 	current = tokenizer.scan();
 	// Avoid error or newline as the first token.
 	// The latter can mess with the parser when opening files filled exclusively with comments and newlines.