mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix error when use relative #include in .gdshader / .gdshaderinc file
This commit is contained in:
parent
3978628c6c
commit
6cf9af2817
3 changed files with 5 additions and 9 deletions
|
|
@ -126,10 +126,9 @@ TEST_CASE("[ProjectSettings] localize_path") {
|
|||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("path\\.\\filename"), "res://path/filename");
|
||||
#endif
|
||||
|
||||
// FIXME?: These checks pass, but that doesn't seems correct
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("../filename"), "res://filename");
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("../path/filename"), "res://path/filename");
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("..\\path\\filename"), "res://path/filename");
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("../filename"), "../filename");
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("../path/filename"), "../path/filename");
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("..\\path\\filename"), "../path/filename");
|
||||
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("/testroot/filename"), "/testroot/filename");
|
||||
CHECK_EQ(ProjectSettings::get_singleton()->localize_path("/testroot/path/filename"), "/testroot/path/filename");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue