From e3c0f72d5385495ba1e070f609672ea32689b716 Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Sat, 21 Oct 2023 16:42:51 -0400 Subject: [PATCH] allow multiple actions of the same type to be registered --- include/NazaraEditor/Core/Application/BaseApplication.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/NazaraEditor/Core/Application/BaseApplication.hpp b/include/NazaraEditor/Core/Application/BaseApplication.hpp index 1ce468f..23bd9f6 100644 --- a/include/NazaraEditor/Core/Application/BaseApplication.hpp +++ b/include/NazaraEditor/Core/Application/BaseApplication.hpp @@ -70,7 +70,8 @@ namespace Nz template void RegisterAction(EditorAction::Properties properties, TArgs&&... args) { - properties.className = TAction::GetClassName(); + if (properties.className.empty()) + properties.className = TAction::GetClassName(); m_actionStack.RegisterAction(properties, std::forward(args)...); OnActionRegistered(properties); }