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

Don't show opacity when not relevant in the list of params in keyframe paste value

parent cfd16932
......@@ -223,7 +223,9 @@ KeyframeWidget::KeyframeWidget(std::shared_ptr<AssetParameterModel> model, QMode
for (const auto &w : m_parameters) {
auto type = m_model->data(w.first, AssetParameterModel::TypeRole).value<ParamType>();
if (type == ParamType::AnimatedRect) {
paramList.insert(w.first, i18n("Opacity"));
if (m_model->data(w.first, AssetParameterModel::OpacityRole).toBool()) {
paramList.insert(w.first, i18n("Opacity"));
}
paramList.insert(w.first, i18n("Height"));
paramList.insert(w.first, i18n("Width"));
paramList.insert(w.first, i18n("Y position"));
......
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