allow multiple actions of the same type to be registered
This commit is contained in:
@@ -70,6 +70,7 @@ namespace Nz
|
||||
template <typename TAction, typename... TArgs>
|
||||
void RegisterAction(EditorAction::Properties properties, TArgs&&... args)
|
||||
{
|
||||
if (properties.className.empty())
|
||||
properties.className = TAction::GetClassName();
|
||||
m_actionStack.RegisterAction<TAction>(properties, std::forward<TArgs...>(args)...);
|
||||
OnActionRegistered(properties);
|
||||
|
||||
Reference in New Issue
Block a user