Cleanup: BLI path extension API

Use BLI_path_extension_* prefix.
This commit is contained in:
2018-06-17 16:13:24 +02:00
parent 6453814ec0
commit a0a1fc8938
26 changed files with 87 additions and 87 deletions

View File

@@ -723,7 +723,7 @@ void BPY_modules_load_user(bContext *C)
bpy_context_set(C, &gilstate);
for (text = bmain->text.first; text; text = text->id.next) {
if (text->flags & TXT_ISSCRIPT && BLI_testextensie(text->id.name + 2, ".py")) {
if (text->flags & TXT_ISSCRIPT && BLI_path_extension_check(text->id.name + 2, ".py")) {
if (!(G.f & G_SCRIPT_AUTOEXEC)) {
if (!(G.f & G_SCRIPT_AUTOEXEC_FAIL_QUIET)) {
G.f |= G_SCRIPT_AUTOEXEC_FAIL;