Commit c1ed0be9 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix undo effect change was restoring incorrect parameter

parent 3a24da5d
Pipeline #78393 canceled with stage
......@@ -40,8 +40,7 @@ AssetCommand::AssetCommand(const std::shared_ptr<AssetParameterModel> &model, co
} else if (TransitionsRepository::get()->exists(id)) {
setText(i18n("Edit %1", TransitionsRepository::get()->getName(id)));
QVariant previousVal = m_model->data(index, AssetParameterModel::ValueRole);
m_oldValue = previousVal.type() == previousVal.toString();
m_oldValue = m_model->data(index, AssetParameterModel::ValueRole).toString();
void AssetCommand::undo()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment