From f94aca4433724682907bd37f68a0b8dd74dfb5cb Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Thu, 14 Dec 2023 23:18:44 +0100 Subject: [PATCH 1/3] Add "Change Type" popup and menu action --- editor/limbo_ai_editor_plugin.cpp | 110 +++++++++++++++++++++++++----- editor/limbo_ai_editor_plugin.h | 12 +++- 2 files changed, 103 insertions(+), 19 deletions(-) diff --git a/editor/limbo_ai_editor_plugin.cpp b/editor/limbo_ai_editor_plugin.cpp index 54516b4..74d1385 100644 --- a/editor/limbo_ai_editor_plugin.cpp +++ b/editor/limbo_ai_editor_plugin.cpp @@ -68,31 +68,35 @@ void LimboAIEditor::_add_task(const Ref &p_task) { _mark_as_dirty(true); } -void LimboAIEditor::_add_task_by_class_or_path(String p_class_or_path) { - Ref task; +Ref LimboAIEditor::_create_task_by_class_or_path(const String &p_class_or_path) const { + Ref ret; if (p_class_or_path.begins_with("res:")) { Ref