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

Rename the .shader file extension to .gdshader

This lets third-party software recognize Godot shaders more easily,
without relying on guesswork since the `.shader` extension is generic.
This commit is contained in:
Hugo Locurcio
2021-03-24 19:50:41 +01:00
parent 9a64d6b2b2
commit b191a7547c
5 changed files with 12 additions and 6 deletions

View File

@@ -1103,7 +1103,7 @@ ProjectSettings::ProjectSettings() {
if (Engine::get_singleton()->has_singleton("GodotSharp")) {
extensions.push_back("cs");
}
extensions.push_back("shader");
extensions.push_back("gdshader");
GLOBAL_DEF("editor/script/search_in_file_extensions", extensions);
custom_prop_info["editor/script/search_in_file_extensions"] = PropertyInfo(Variant::PACKED_STRING_ARRAY, "editor/script/search_in_file_extensions");