Block image tools on stop frames
This commit is contained in:
parent
8ae0d4c157
commit
f48cd7b170
1 changed files with 11 additions and 0 deletions
|
@ -353,6 +353,10 @@ TImage *TTool::touchImage() {
|
|||
if (!xsh) return 0;
|
||||
|
||||
TXshCell cell = xsh->getCell(row, col);
|
||||
|
||||
// Stop frames cannot be modified
|
||||
if (cell.getFrameId().isStopFrame()) return 0;
|
||||
|
||||
TXshSimpleLevel *sl = cell.getSimpleLevel();
|
||||
|
||||
if (sl) {
|
||||
|
@ -1108,6 +1112,13 @@ QString TTool::updateEnabled(int rowIndex, int columnIndex) {
|
|||
"frames of a Single Frame level."));
|
||||
}
|
||||
}
|
||||
|
||||
// Stop frames cannot be modified
|
||||
if (xsh->getCell(rowIndex, columnIndex).getFrameId().isStopFrame()) {
|
||||
return (
|
||||
enable(false),
|
||||
QObject::tr("The current tool cannot be used on a stop frame."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue