From a998b453412cf65fad5960eb46fb4bd5c103fea7 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sat, 16 Sep 2023 13:22:09 +0200 Subject: [PATCH] Allow C# scripts extending BTTask to be added in the behavior tree editor --- util/limbo_task_db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/limbo_task_db.cpp b/util/limbo_task_db.cpp index 955e8d7..5dc99e2 100644 --- a/util/limbo_task_db.cpp +++ b/util/limbo_task_db.cpp @@ -26,7 +26,7 @@ _FORCE_INLINE_ void _populate_scripted_tasks_from_dir(String p_path, Listlist_dir_begin(); String fn = dir->get_next(); while (!fn.is_empty()) { - if (fn.ends_with(".gd")) { + if (fn.ends_with(".gd") || fn.ends_with(".cs")) { String full_path = p_path.path_join(fn); p_task_classes->push_back(full_path); }