Fixed Hide freetransform button in readonly mode

This commit is contained in:
Jindra Petřík
2022-12-10 13:40:52 +01:00
parent 0b51c26abf
commit 2745276f2c
2 changed files with 3 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ All notable changes to this project will be documented in this file.
- Loading nested characters when Importassets tag used
- Hide various actions for imported tags
- Clone tag
- Hide freetransform button in readonly mode
### Changed
- Quick search needs minimum of 3 characters

View File

@@ -894,7 +894,8 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
placeImagePanel.setTimelined(((Tag) tag).getTimelined(), ((Tag) tag).getSwf(), frame, true, Configuration.autoPlayPreviews.get(), !Configuration.animateSubsprites.get(), false, !Configuration.playFrameSounds.get(), true);
placeImagePanel.selectDepth(tag.getDepth());
parametersPanel.setVisible(false);
placeEditButton.setVisible(!tag.isReadOnly() && !readOnly);
placeEditButton.setVisible(!tag.isReadOnly() && !readOnly);
placeFreeTransformButton.setVisible(!tag.isReadOnly() && !readOnly);
placeEditButton.setEnabled(true);
placeSaveButton.setVisible(false);
placeCancelButton.setVisible(false);