Finish TODO 6 and 7
This commit is contained in:
@@ -20,3 +20,30 @@
|
||||
|
||||
#include "paraminstance.h"
|
||||
|
||||
#include "OlivePluginInstance.h"
|
||||
|
||||
namespace olive
|
||||
{
|
||||
namespace plugin
|
||||
{
|
||||
void SubmitUndoCommand(const std::shared_ptr<PluginNode> &node,
|
||||
UndoCommand *command, const QString &label)
|
||||
{
|
||||
if (!command) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node) {
|
||||
auto *instance = node->getPluginInstance();
|
||||
auto *olive_instance =
|
||||
dynamic_cast<OlivePluginInstance *>(instance);
|
||||
if (olive_instance) {
|
||||
olive_instance->SubmitUndoCommand(command, label);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Core::instance()->undo_stack()->push(command, label);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user