Fix #119102: GLSL was the default formatter without a file extension

Regression in [0] which registered the GLSL formatter before Python.
Resolve and note that the registration order matters in code-comments.

[0]: 462c144f41
This commit is contained in:
Campbell Barton
2024-03-06 15:12:00 +11:00
parent d686699316
commit c4a74ff2de

View File

@@ -480,10 +480,11 @@ void ED_spacetype_text()
BKE_spacetype_register(std::move(st));
/* register formatters */
ED_text_format_register_glsl();
ED_text_format_register_py();
/* Register formatters.
* The first registered formatter is default when there is no extension in the ID-name. */
ED_text_format_register_py(); /* Keep first (default formatter). */
ED_text_format_register_osl();
ED_text_format_register_glsl();
ED_text_format_register_pov();
ED_text_format_register_pov_ini();
}