Fix: Weird name showing on the tasks
This commit is contained in:
parent
c1d0353798
commit
966199e8dc
|
@ -67,7 +67,7 @@ String BTTask::_generate_name() {
|
|||
#endif // LIMBOAI_MODULE
|
||||
|
||||
#ifdef LIMBOAI_GDEXTENSION
|
||||
if (!get_path().is_empty()) {
|
||||
if (IS_RESOURCE_FILE(get_path())) {
|
||||
return get_path().get_basename().get_file().trim_prefix("BT").to_pascal_case();
|
||||
}
|
||||
return get_class().trim_prefix("BT");
|
||||
|
|
|
@ -146,6 +146,7 @@ inline void VARIANT_DELETE_IF_OBJECT(Variant m_variant) {
|
|||
}
|
||||
|
||||
#define PROJECT_CONFIG_FILE() GET_PROJECT_SETTINGS_DIR().path_join("limbo_ai.cfg")
|
||||
#define IS_RESOURCE_FILE(m_path) (m_path.begins_with("res://") && m_path.find("::") == -1)
|
||||
|
||||
void SHOW_DOC(const String &p_topic);
|
||||
|
||||
|
|
Loading…
Reference in New Issue