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